mucus plug?

I need to know if this is some of my plug? I have been having contractions all day and my vagina is sore and swollen. I went to the bathroom and wiped and got this. it had a little streak of blood can't see it in the pic though.