You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. IOS 偶现音频报错 operateAudio:fail jsapi has no permission
24
+
25
+
- 音频播放时小游戏退后台就有可能出现,没有实际影响,可以忽略
26
+
27
+
3. 音频播放时游戏卡顿
28
+
29
+
- 如果同时播放的音频数量过多,是有可能造成游戏延迟卡顿的,建议限制同时播放的音频数量
30
+
31
+
4. 部分音频文件在安卓无法循环播放
32
+
33
+
- 已知问题,8.0.51 客户端版本修复
34
+
35
+
5. 音频在 PC 端无法循环播放完整音频
36
+
37
+
- 已知问题,更新最新的 Unity 导出插件
38
+
39
+
6. 推荐使用什么音频格式
40
+
41
+
- 推荐 mp3 或者 aac 格式,在双端有较好的兼容
42
+
43
+
## 视频
44
+
45
+
目前 VideoPlayer 已自动适配微信小游戏
46
+
47
+
### 支持版本
48
+
49
+
不同客户端的支持情况不同,以下为最低支持版本:
50
+
51
+
| 参数 | 版本 |
52
+
| ----------- | --------------------------- |
53
+
| IOS 高性能+ | 8.0.51 |
54
+
| IOS 高性能 | 8.0.41 |
55
+
| 安卓 | 8.0.40 |
56
+
| PC | 基础库 3.2.1 |
57
+
| 开发者工具 | 基础库 3.2.1 + 1.06.2310312 |
58
+
59
+
### QA
60
+
61
+
1. 视频在 IOS 无法播放,在其他平台都可以播放?
62
+
63
+
- 可以尝试把视频播放链接替换我们这个视频链接试试看是否正常,一般这种情况都是服务端设置问题,会报错`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 )
64
+
65
+
2. 视频在 IOS 播放有声音没画面?
66
+
67
+
- 开启了高性能+,先临时关闭高性能+
68
+
69
+
3. 为什么 IOS 高性能模式只能同时播放一个视频?
70
+
71
+
- IOS 的播放策略,只能从逻辑上兼容
72
+
73
+
4. 是否应该使用 VideoPlayer?
74
+
75
+
- 如果只是单纯使用全屏的视频播放,更推荐使用小游戏 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)
0 commit comments