mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 07:01:19 +00:00

On Android, decoded buffers need to be send back to MediaCodec in order to be rendered and/or recycled. The current mechanism introduced in bug 1299068 only works for playback(VideoData/VideoSink) but not WebRTC(VideoFrame/VideoOutput). Move the callback to SurfaceTextureImage because VideoData and VideoFrame both own that when using MediaCodec, and move the notification to VideoFrameContainer for both VideoSink and VideoOutput pass frames there for compositing. Differential Revision: https://phabricator.services.mozilla.com/D45771 --HG-- extra : moz-landing-system : lando