ijkplayer icon indicating copy to clipboard operation
ijkplayer copied to clipboard

seek 缓冲问题

Open GeekTR opened this issue 1 year ago • 1 comments

这个是原版ijkplayer就存在的问题,只要seek缓冲就没了,对网络不好的情况不是很友好。

ijk的seek机制是:

  1. 丢弃缓存区中所有数据
  2. 调用avformat_seek_file
  3. 开始缓冲

能否修改ff_ffplay.c的seek机制为: 在缓冲区中查找seek目标位置

  1. 如果有找到,则丢弃部分数据(注意多线程同步问题)
  2. 如果没有找到,按原逻辑处理

本人实在对音视频相关c代码无能为力,希望大佬可以帮忙

GeekTR avatar Feb 01 '25 15:02 GeekTR

是的,这个优化我还没做,抽时间搞搞。

debugly avatar Feb 05 '25 07:02 debugly

对于m3u8格式实现了边播变下功能,这个功能目前还没公开,后续可能会在 fsplayer 上开放。

debugly avatar Apr 15 '25 08:04 debugly