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