Mucus plug??

Alli

So I had a cervical check this past Thursday the 18th I was 1cm dilated at 36w 1d got home that night had this discharge

Then this morning the 21st currently 36w 4d I woke up with this discharge, I’ve been having contractions off and on for weeks definitely getting more painful and uncomfortable just not regular enough to go to hospital but with that being said is this my mucus plug and what are my next steps it’s been 4 years since my last pregnancy and this is all new to me