haiyangwu / mediasoup-client-android

mediasoup android client side library https://mediasoup.org
MIT License
182 stars 109 forks source link

Video consumer only support Software Decoder #27

Closed whatisor closed 4 years ago

whatisor commented 4 years ago

I add log to trace flow of code from mediasoupclient to webrtc. for video consuming, it uses libvpx which is only software based. 2020-05-31 18:19:35.083 15115-15247/? I/libvpx_vp8_decoder.cc: (line 159): LibvpxVp8Decoder::Decode

Can we switch to hardware decoder of android such as OMX?

haiyangwu commented 4 years ago

@whatisor pls check the source code of webrtc, If you want to support other codecs, change the source file and replace the prebuild library in the repo.

https://chromium.googlesource.com/external/webrtc/+/branch-heads/m79/sdk/android/src/java/org/webrtc/MediaCodecVideoDecoderFactory.java