使用InnerAudioContext播放远端音乐文件时,在ios真机播放延迟过长?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:00 958 0 全屏看文

AI助手支持GPT4.0

使用InnerAudioContext播放远端音乐文件时,在ios真机播放延迟过长?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug InnerAudioContext 微信iOS客户端 7.0.14 2.11.3

进入场景后直接调用InnerAudioContext去播放远端音乐,在ios真机上会延迟十几秒才能播放出来,而andriod却可以直接播放。

在回调中打印时间戳发现,onWaiting和onCanplay的调用时间相差十几秒。

Framework type problem type API / component name terminal type wechat version basic library version game bug innereaudiocontext wechat IOS client 7.0.14 2.11.3 after entering the scene, it directly calls innereaudiocontext to play remote music, which will delay more than ten seconds on IOS real machine, while Android can play it directly. Printing the timestamp in the callback shows that the call time difference between onwaiting and oncanplay is more than ten seconds. Code snippet https://developers.weixin.qq.com/s/QsKymDm17Kio

回答:

Forever:

你的代码片段我用iPhone11,IOS版本13.4.1复现不了你的BUG

流星:我目前发现的情况是这样的:
准备工具:ios真机、 android真机、 慢的网络(能正常下载)、快的网络
ios真机 :在慢网络环境下延迟很明显
android 真机:在两个网络环境下都几乎没有延迟
Forever:ios的音频是完全下载好才能播放的

-EOF-

AI助手支持GPT4.0