Bleeding during sex 27 weeks

Jenny
I am 27 weeks and 2 days. Me and my husband were having sex and it felt very wet. We went to switch positions and there was blood all over him and between my legs. I called my dr. And she said of the blood continues come in. The blood has slowed but still when I wipe bright red blood is on the toilet paper. Any thoughts or suggestions?