wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

0.26.1缓冲进度总是往回跳 #151

Open yemin82 opened 2 months ago

yemin82 commented 2 months ago

下面是打印出来的缓冲进度,刚升级0.26.1,之前都没这个问题 flutter: 0:34:16.703000 flutter: 0:35:31.582000 flutter: 0:34:17.903000 flutter: 0:34:18.489000 flutter: 0:34:19.078000 flutter: 0:34:19.690000 flutter: 0:34:20.301000 flutter: 0:35:34.884000 flutter: 0:35:36.334000 flutter: 0:35:36.906000 flutter: 0:34:22.703000

yemin82 commented 2 months ago

解决了,我是按你demo把lowLatency填成1,走 player.setProperty('avformat.fflags', '+nobuffer'); player.setProperty('avformat.fpsprobesize', '0'); player.setProperty('avformat.analyzeduration', '100000'); 运行了这些就有问题, 我之前没设置 lowLatency,所以不会运行这些代码,然后吧你的代码改了下 设置 player.setBufferRange(min: 1000, max: 120000);就没问题的

wang-bin commented 2 months ago

完整日志