看到一种解决办法如下:
Seek request will cause the buffer be flushed.
The option for async will not become effective unless you enable it.
请问一下 怎么设置async 的默认缓冲大小?
https://www.ffmpeg.org/ffmpeg-protocols.html#async and see async.c
@raymond1012
我加了async:URL可是还是没什么效果
对于async.c我应该怎么改,还有就是想知道能不能通过setOption之类的方式禁止清空缓冲区的数据?
你需要读懂ijk的缓冲机制,然后将默认缓冲方式减少到一个很小的值,同时在async.c中加入缓冲字节数上报,上层使用该缓冲值,目前async
默认是4M,可以自行修改
2017-06-01 14:47 GMT+08:00 song notifications@github.com:
@raymond1012 https://github.com/raymond1012
我加了async:URL可是还是没什么效果
对于async.c我应该怎么改,还有就是想知道能不能通过setOption之类的方式禁止清空缓冲区的数据?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Bilibili/ijkplayer/issues/3166#issuecomment-305404117,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEOmlh0mjJVnTbsdrJAHV73_b20RxlDDks5r_l6MgaJpZM4NshDK
.
@songhongwang 这个问题解决了吗?我现在也遇到这个问题,不知道怎么处理。。
@dcw0505 我已经解决了: 请调用 seekto,不要使用下面这行代码去 做 seekto
((IjkMediaPlayer) mMediaPlayer).setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "seek-at-start", curSeekPos);
@zhangchaojiong 能具体点吗,怎么调用?谢谢
Most helpful comment
@dcw0505 我已经解决了: 请调用 seekto,不要使用下面这行代码去 做 seekto
((IjkMediaPlayer) mMediaPlayer).setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "seek-at-start", curSeekPos);