微信小游戏 wx.createVideo播放视频的次数到达一定数量,就会返回解码失败?

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

AI助手支持GPT4.0

微信小游戏 wx.createVideo播放视频的次数到达一定数量,就会返回解码失败?

你好,我们的需求需要在小游戏中频繁播放视频,播放完一个视频后紧接着播放另外一个。

但是我们在开发过程中,发现不同的手机能播放视频的次数都不一样,iphone普遍会多一些。

oppo a5能播放14次视频( 调用14次wx.createVideo来播放视频),华为p20 22次,iphoneX 33次。

而且,每次播放同一个视频,最终也会出现解码失败的onError回调。

Hello, we need to play video frequently in small games. After playing one video, we play another. However, during the development process, we found that different mobile phones can play videos differently, and iPhones generally play more videos. Oppo A5 can play 14 videos (call 14 times wx.createVideo To play the video), Huawei P20 22 times, iPhone x 33 times. Moreover, every time the same video is played, an onerror callback that fails to decode will eventually appear.

回答:

Forever:

播放完视频后,在播放下一个视频之前,把上一个视频实例进行destroy,这样不断的重复会解码失败吗?

-EOF-

AI助手支持GPT4.0