Android Precise seeking of video

后端 未结 1 533
执念已碎
执念已碎 2021-02-10 05:53

I\'m struggling with precise seeking using MediaExtractor\'s seekTo(). While I can seek to sync frames without problems, I would like to seek to specific time. This

相关标签:
1条回答
  • 2021-02-10 06:39

    You don't appear to be pulling buffers from the output side. The MediaCodec decoder doesn't drop frames, so when its internal buffers fill up it will stop handing you input buffers.

    You need to drain the decoder by requesting output buffers. When you release the buffer, set the "render" flag to false so it doesn't appear on screen.

    0 讨论(0)
提交回复
热议问题