Skip to content

Commit d8f4400

Browse files
author
uhu
committed
docs: update
1 parent e3cb325 commit d8f4400

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Design/AudioAndVideo.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,42 +48,43 @@ FMOD 原理:
4848

4949
## 视频
5050

51-
目前 VideoPlayer 已自动适配微信小游戏
51+
在微信小游戏中有两种播放视频的方式,目前 VideoPlayer 组件已自动适配微信小游戏,只有全屏视频的场景也可以选择使用[WXVideo API](https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/tree/main/Demo/WX_Video)
5252

53-
### 支持版本
53+
### VideoPlayer 支持版本
5454

5555
不同客户端的支持情况不同,以下为最低支持版本:
5656

5757
| 参数 | 版本 |
5858
| ----------- | --------------------------- |
59-
| IOS 高性能+ | 8.0.51 |
59+
| IOS 高性能+ | 暂不支持 |
6060
| IOS 高性能 | 8.0.41 |
6161
| 安卓 | 8.0.40 |
6262
| PC | 基础库 3.2.1 |
6363
| 开发者工具 | 基础库 3.2.1 + 1.06.2310312 |
6464

6565
### QA
6666

67-
1. 视频在 IOS 无法播放,在其他平台都可以播放?
67+
1. VideoPlayer 视频在 IOS 无法播放,在其他平台都可以播放?
6868

6969
- 可以尝试把视频播放链接替换我们这个视频链接试试看是否正常,一般这种情况都是服务端设置问题,会报错`Origin weapp://wechat-game-runtime is not allowed by Access-Control-Allow-Origin`,但是没有打印到客户端,只需要配置服务端允许微信跨域访问即可(视频链接:https://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400
7070

71-
2. 视频在 IOS 播放有声音没画面?
71+
2. VideoPlayer 视频在 IOS 播放有声音没画面?
7272

7373
- 开启了高性能+,先临时关闭高性能+
7474

75-
3. 为什么 IOS 高性能模式只能同时播放一个视频?
75+
3. VideoPlayer 为什么在 IOS 高性能模式只能同时播放一个视频?
7676

7777
- IOS 的播放策略,只能从逻辑上兼容
7878

79-
4. 是否应该使用 VideoPlayer?
79+
4. 应该使用 VideoPlayer 还是 WXVideo
8080

8181
- 如果只是单纯使用全屏的视频播放,更推荐使用小游戏 API 视频播放能力。请参考[小游戏开发者文档](https://developers.weixin.qq.com/minigame/dev/api/media/video/wx.createVideo.html)以及示例[Video Demo](https://github.com/wechat-miniprogram/minigame-unity-webgl-transform/tree/main/Demo/WX_Video)
8282

83-
5. WXVideo 真机播放正常,开发者工具无法播放
83+
5. WXVideo 真机播放正常,开发者工具无法播放
8484

8585
- 开发者工具暂时有异常,先主动切换到`3.4.10`版本基础库查看
8686

87-
6. WXVideo 在 IOS 设置 underGameView 之后黑屏,有声音没画面
87+
6. WXVideo 在 IOS 设置 underGameView 之后黑屏,有声音没画面
8888

8989
- 需要开启高性能模式
90+

0 commit comments

Comments
 (0)