Detect openh264 support

120 views
Skip to first unread message

lakshman rao

unread,
Oct 10, 2020, 9:06:10 AM10/10/20
to discuss-webrtc
Hi, is there a way i can detect if openh264 is supported on browser or not after creating peer connection?

Eric Davies

unread,
Oct 10, 2020, 3:20:35 PM10/10/20
to discuss-webrtc
what you probably mean is h264 as opposed to OpenH264, and  "after establishing a peer connection" rather than "after creating peer connection"
Operating under that interpretation:
   create a peer connection object,
   create an offer from it,
   see if the offer has an H264 codec.

Сергей Хоменко

unread,
Apr 6, 2021, 4:15:28 AM4/6/21
to discuss-webrtc
maybe just use RTCRtpSender.getCapabilities("video")
and then check if mimeType === video/h264 is listed in the response?
again, if you are just trying to find out is there any h264 support, and not the browsers decoder implementation

суббота, 10 октября 2020 г. в 22:20:35 UTC+3, ericthe...@gmail.com:
Reply all
Reply to author
Forward
0 new messages