Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要找到一种MPMoviePlayerController在缓存视频的第一帧后显示视图的方法。
MPMoviePlayerController
我的应用程序将视频的第一帧显示为 a png,然后我希望视频显示时屏幕不会变黑。我怎样才能做到这一点?
png
通过将该图像MPMoviePlayerController添加为MPMoviePlayerController.view.
MPMoviePlayerController.view
视频开始播放 MPMoviePlayerPlaybackStateDidChangeNotification后(使用 对此做出反应),隐藏/删除您的叠加层。
MPMoviePlayerPlaybackStateDidChangeNotification