pion / mediadevices

Go implementation of the MediaDevices API.
https://pion.ly/
MIT License
521 stars 120 forks source link

Video not showing in video element in latest versions of chrome. #492

Open anand-dotworld opened 1 year ago

anand-dotworld commented 1 year ago

I am trying out the pion mediadevices example for webrtc. which is given in this repository. The connection is connected successfully. I am also receiving a video track and attaching the Mediastream from the video track to a video element, just like in the example I haven't changed anything. But the video is not showing in video element.

Tested in Chrome 111 - Not working Chrome 108 - Working.

I don't know whether the problem is with pion or chrome. Does anyone has similar problem like this. Can anyone help me with this?

naveenrobo commented 1 year ago

Yes. Unable to steam camera using given webrtc example.

selvan commented 1 year ago

same issue with chrome 112 and webrtc example. After replacing video encoding H264 with VP8 (changing x264.NewParams() to vpx.NewVP8Params()), video is showing in Chrome 112.

ps: My go build was linked to x264: stable r3095

@wawesomeNOGUI @Sean-Der

naveenrobo commented 1 year ago

Yes. I can confirm vp8 works fine but not h264.

cwww3 commented 1 year ago

vp8 works fine in chrom but not works in safari

G2G2G2G commented 1 year ago

every example is broken in 1 or more ways except mjpeg (http) one