微信小游戏视频播放完毕之后怎么讲改视频的内存释放出现?

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

AI助手支持GPT4.0

微信小游戏视频播放完毕之后怎么讲改视频的内存释放出现?

麻烦问一下,我这边开发遇到一个问题,视频播放完毕之后,视频还缓存再内存中。因为整个小游戏一直运行的话,内存会从一开始的300+M一直到600+M,会导致后面游戏也来也卡。

麻烦请教一下,该如何在播放完毕之后释放掉视频的数据?

Please ask me, I have a problem with the development. After the video is played, the video is still cached in the memory. Because if the whole game has been running, the memory will be from 300 + m to 600 + m at the beginning, which will lead to the subsequent games also coming. Please ask me, how to release the video data after playing?

回答:

小游戏运营专员-宏:

remove掉video组件就行了。

Forever:

调用destroy不行吗?

-EOF-

AI助手支持GPT4.0