When is VideoDecoderFactory#getSupportedCodecs called?

21 views
Skip to first unread message

rayay...@gmail.com

unread,
Jan 24, 2019, 5:11:30 AM1/24/19
to discuss-webrtc
I used the webrtc Android prebuild version 1.0.25821 and found that VideoDecoderFactory#getSupportedCodecs(...) has never been called.
In the official Android sample, VideoDecoderFactory#getSupportedCodecs(...) is not called even VideoDecoderFactory#createDecoder(...) will be called.

Then, I tried in my own app and found even if I don't stream to another peer, VideoEncoderFactory#getSupportedCodecs(...) is still called instead of VideoDecoderFactory#getSupportedCodecs(...), then VideoDecoderFactory#createDecoder(...) is called(but VideoEncoderFactory#createEncoder(...) is not called).

If this is the correct flow? 
If it's the correct flow, what's the reason VideoEncoderFactory#getSupportedCodecs(...) is called instead of VideoDecoderFactory#getSupportedCodecs(...) even though VideoDecoderFactory#createDecoder(...) is called after that(which means webrtc needs a decoder).
Look forward to the answer, thanks.

BR,
Ray
Reply all
Reply to author
Forward
0 new messages