Does GeckoView/Firefox WebRTC Support AV1/H264 codecs on Android?

422 Views Asked by At

Trying to get WebRTC to work on an Andoid device using GeckoView. I need AV1 and/or H264 codecs, however, on the webpage calling:

new RTCPeerConnection().createOffer({offerToReceiveVideo: true}).then(s => console.log(s.sdp))

Only shows the VP8 and VP9 codecs.

The same code in the chromium webview does produce the AV1 and H264 codecs.

What do I have to do to get H264/AV1 codecs in GeckoView?

Note, testing the same code on the official firefox app produces the same results (no H264/AV1 codecs).

Using Android 12 and GeckoView 107.0.20221110173214

Example: https://mozilla.github.io/webrtc-landing/pc_test_no_h264.html Open this page in the FireFox official app or Gecko webivew. They both show h264 not supported.

0

There are 0 best solutions below