将video组件src设置为本地地址:static/index.m3u8
index.m3u8包含网络地址:https://s5.bfzycdn.com/video/shihengxiongjianzhizuiyusha/HD/0001189.ts
- 发布:2024-03-28 09:16
- 更新:2024-03-28 09:17
- 阅读:142
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10
HBuilderX类型: 正式
HBuilderX版本号: 4.06
手机系统: Android
手机系统版本号: Android 13
手机机型: NR21
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
video组件能正常播放视频。
video组件能正常播放视频。
实际结果:
手机播放时报错如下:
11-06 16:02:08.049 4030 4367 I IJKMEDIA: Opening 'https://s5.bfzycdn.com/video/shihengxiongjianzhizuiyusha/HD/0001189.ts' for reading
11-06 16:02:08.049 4030 4367 E IJKMEDIA: Protocol 'https' not on whitelist 'file,crypto'!
11-06 16:02:08.049 4030 4367 W IJKMEDIA: Failed to open segment 1197 of playlist 0
手机播放时报错如下:
11-06 16:02:08.049 4030 4367 I IJKMEDIA: Opening 'https://s5.bfzycdn.com/video/shihengxiongjianzhizuiyusha/HD/0001189.ts' for reading
11-06 16:02:08.049 4030 4367 E IJKMEDIA: Protocol 'https' not on whitelist 'file,crypto'!
11-06 16:02:08.049 4030 4367 W IJKMEDIA: Failed to open segment 1197 of playlist 0
bug描述:
手机播放本地m3u8文件报错如下,如何解决?
11-06 16:02:08.049 4030 4367 I IJKMEDIA: Opening 'https://s5.bfzycdn.com/video/shihengxiongjianzhizuiyusha/HD/0001189.ts' for reading
11-06 16:02:08.049 4030 4367 E IJKMEDIA: Protocol 'https' not on whitelist 'file,crypto'!
11-06 16:02:08.049 4030 4367 W IJKMEDIA: Failed to open segment 1197 of playlist 0
谢谢
1 个回复
zfweihai (作者)
问题同:https://ask.dcloud.net.cn/question/181025
官方只改了uniapp x没有uniapp,也是佩服。