问题如题,引擎版本cocos2dx-lua 3.10,有大神遇到过吗,并不是所有机型会出问题,该如何改啊~
我在使用的引擎版本是3.10的
cocos2d-x3.10版本的VideoPlayer,iOS是使用 MPMoviePlayerController 實現的,iOS13棄用了 MPMoviePlayerController 。Xcode會報錯:Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘MPMoviePlayerController is no longer available. Use AVPlayerViewController in AVKit.’。需使用AVPlayerViewController來重新實現VideoPlay兒。cocos2dx-4.0已經是這樣做了,可下載源碼參考。
1赞
非常感谢,之前我还去下载了3.17,都没看到在用AVPlayerViewController,原来在4.0里面啊