来自资产的Flutter HLS(M3U8)格式视频不在iOS设备上播放
我正在面临视频播放器的问题。来自资产的HLS(M3U8)视频没有在iOS设备上播放
。我已经使用playlist.m3u8下载了所有TS块文件,并将其复制到资产文件夹。 Android没有问题从资产中播放,但是在iOS设备上它没有播放,并且错误日志也不会投掷。
有解决方案吗?如何从iOS设备上的资产/本地播放HLS(M3U8)视频。
使用:video_player: ^2.3.0
I'm facing a problem with the video player. HLS (m3u8) video from the asset is not playing on the iOS device
. I've downloaded all the ts chunk files with playlist.m3u8 and copied them to the asset folder. Android there is no issue it's playing fine from the asset but on the iOS device it's not playing and the error log also not throwing.
Any solution? How to play HLS (m3u8) video from the asset/local on the iOS device.
Using: video_player: ^2.3.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您需要使用HTTP(而不是HTTPS)URL访问视频,则需要将适当的NSApptransportSecurity权限添加到您的应用程序的Info.plist文件中,该文件位于/osios/runner/info.plist中。
参见“ nofollow noreferrer”> apple的文档确定您的用途情况的正确组合 iOS版本。
If you need to access videos using HTTP (rather than HTTPS) URLs, you will need to add the appropriate NSAppTransportSecurity permissions to your app's Info.plist file, located in /ios/Runner/Info.plist.
See Apple's documentation to determine the right combination of entries for your use case and supported iOS versions.