fijkplayer
fijkplayer copied to clipboard
[BUG]播放在线视频中途暂停后,拖动进度条调用seekTo后,画面会自动播放,但没有声音输出,也没有状态和进度回调。
Describe the bug 播放在线视频中途暂停后,拖动进度条调用seekTo后,画面会自动播放,但没有声音输出,也没有状态和进度回调。
What attempts have you made to resolve this error ? 在seekTo前后手动调用pause,仍然会有这个问题。
To Reproduce
- 播放一个在线视频,中途点击暂停
- 拖动进度条调整视频播放进度
Expected behavior 调整进度后仍然是站厅状态,画面和声音均暂停
Screenshots 无
fijkplayer version fijkplayer: 0.10.1
Smartphone (please complete the following information): 什么手机设备和系统版本?
- Device: [Honor 8C]
- OS: [EMUI8.2.0,Android8.1.0]
1、仅配置了一个缓存参数 // 设置本地缓存,url前面需加上ijkio:cache:ffio: final dir = await getTemporaryDirectory(); final path = "${dir.path}/${widget.settings.file?.name}"; await _fijkPlayer.setOption(FijkOption.formatCategory, "cache_file_path", path);
2、调整进度调用步骤 await _fijkPlayer.pause(); await _fijkPlayer.seekTo(time); Future.delayed(Duration(milliseconds: 100), () async { await _fijkPlayer.pause(); });