问题描述
我正在尝试使用AVPlayer和AVPlayerViewController播放本地和远程视频,但是我遇到了问题。播放器正在播放视频音频,但未显示预览。
在低于iOS 14.0.1的所有iOS版本上都可以正常工作。
请帮助我解决这个问题
这是示例代码
movieUrl = [NSURL fileURLWithPath:filePath];
AVPlayer *player = [AVPlayer playerWithURL:movieUrl];
theMoviPlayer = [[AVPlayerViewController alloc] init];
theMoviPlayer.player = player;
[self addSubview:theMoviPlayer.view];
theMoviPlayer.view.frame = self.bounds;
[theMoviPlayer.player play];
Look at this image for better understanding
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)