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
126 stars 20 forks source link

[Question] 如何播放二进制流 #87

Open cenumi opened 1 month ago

cenumi commented 1 month ago

我们的直播视频流是从 websocket 中获取的, 并且需要发送消息, 现在临时的解决方法是收到流后写入文件, 传入文件地址后以 'avio.follow', '1' 的方式进行播放, 效率会有些影响. 请问有什么解决方案吗.

在目前的issue中搜到了 mem: 方式但似乎只能传入整个文件 fd: 似乎在 flutter 中无法使用 enqueue 方法在 fvp 中不存在

十分感谢

wang-bin commented 1 month ago

fd:使用上有什么问题

cenumi commented 1 month ago

fd:使用上有什么问题

在 Flutter 中似乎没有对应的API,也可能是我没找到相关的用法,求教了

wang-bin commented 1 month ago

估计得写c代码吧