AVPlayerLayer 未在 iOS 11 中呈现离线 HLS 视频

AVPlayerLayer not rendering offline HLS video in iOS 11

我在 iOS 11 中遇到了一个奇怪的问题。我有一个应用程序,我在 AVPlayer 中播放 HLS 视频。在离线 HLS 视频的情况下 开始视频后音频正在播放但视频内容未在 AVPlayerLayer 上呈现。此问题 仅在 iOS 11 及更高版本 中出现。它在 iOS 10 中完美运行。但同时在线 HLS 内容在 iOS 11 和 iOS 10 中完美播放。

这似乎是 iOS 11 中的错误,因为我在 Apple's sample code.

中检查过它

我运行示例代码在iOS 11 设备检查。

如果这不是 iOS11 中的错误,那么如何解决这个问题。

This issue is solved now. It was bug in iOS 11.0 but now it's fixed in iOS 11.2.

I used Xcode version 9.2 latest iOS SDK version 11.2