Video element not able to play MediaStream from consumer

Has anyone faced an issue where a HTML video element cannot resolve the Mediastream object from a consumer

The MediaStream object was created by getUserMedia videoTrack, sent by a producer and received by a consumer ( the producerid and consumerid matches).

Producer/Consumer syntax was almost exactly as API documentation.
forceTCP=true on localhost
Made sure consumer was returning MediaStreamTrack object

What else should I check? Any ideas welcome…

Your description looks too vague to me sorry, I would start to check chrome://webrtc-internals to make sure data is coming in with the expected codec.

Also, make sure the track is attached correctly to the video element and you are playing it.
You can add logs to readyState and see if it becomes ready to play.

1 Like

Thanks for trying. Might be useful tips in this situation for someone else.

Figured out what the issue was. I was using the dtlsparameters returned from the create transport request to the server as the dtlsparameters argument in the connect event handler instead of using the dtlsparameter from the event itself.