MobileVLCKit播放器在iOS 11上显示黑屏

MobileVLCKit播放器在iOS 11上显示黑屏,ios,mobile,vlc,ios11,xcode9,Ios,Mobile,Vlc,Ios11,Xcode9,在我的项目中,使用MobileVLCKit 3.0.0播放媒体 所有类型的视频在iOS 9和10上成功播放,但在iOS 11上视频音频可以收听,但图片不显示,并显示黑屏 提供以下日志: 2017-09-18 18:26:17.640065+0800 DemoPlayer[39923:369260] creating player instance using shared library ======================================================

在我的项目中,使用MobileVLCKit 3.0.0播放媒体

所有类型的视频在iOS 9和10上成功播放,但在iOS 11上视频音频可以收听,但图片不显示,并显示黑屏

提供以下日志:

2017-09-18 18:26:17.640065+0800 DemoPlayer[39923:369260] creating player instance using shared library
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   DemoPlayer                          0x0000000108349895 Open + 405
2017-09-18 18:26:23.490963+0800 DemoPlayer[39923:369593] [reports] Main Thread Checker: UI API called on a background thread: -[UIView bounds]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   DemoPlayer                          0x0000000108349895 Open + 405
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView initWithFrame:]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   DemoPlayer                          0x0000000108349f3b -[VLCOpenGLES2VideoView initWithFrame:zeroCopy:voutDisplay:] + 91
2017-09-18 18:26:23.875359+0800 DemoPlayer[39923:369593] [reports] Main Thread Checker: UI API called on a background thread: -[UIView initWithFrame:]
PID: 39923, TID: 369593, Thread name: (none), Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   DemoPlayer                          0x0000000108349f3b -[VLCOpenGLES2VideoView initWithFrame:zeroCopy:voutDisplay:] + 91
2017-09-18 18:26:23.959355+0800 DemoPlayer[39923:369593] CoreAnimation: [EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! Note that this may be unsafe without an explicit CATransaction or a call to [CATransaction flush].
shader program 1: WARNING: Output of vertex shader 'TexCoord1' not read by fragment shader
WARNING: Output of vertex shader 'TexCoord2' not read by fragment shader

提前感谢。

您需要在版本“3.0.0a38”或更高版本中将MobileVLCKit更新为pod“MobileVLCKit unstable”。这个问题解决了。由于它从后台线程调用UIKit,因此无法使库的旧版本以任何方式工作。

最后,得到了解决方案

现在,“MobileVLCKit不稳定”版本于9月20日更新为master,UIKit来自后台线程(iOS 11视频播放)问题

解决方案1:

将pod'MobileVLCKit unstable'、'3.0.0a38'添加到pod文件中并运行
pod安装

解决方案2:

  • 已从以下URL克隆回购:

  • 打开终端,导航到根目录并执行
    /buildMobileVLCKit.sh-f
    (注意:可能需要1-2小时才能完成)

  • 成功完成后,将在VLCKit/build/folder位置生成
    MobileVLCKit.framework
  • 只需将其拖到项目中即可

  • 嗨,Feepk,我正在尝试安装提到的pod,但无法安装。已尝试使用pod“MobileVLCKit不稳定”“3.0.0a38”,pod尝试使用MobileVLCKit不稳定。你能帮忙吗?ThanksAlso创建了新项目,并尝试使用以下命令a)pod try“MobileVLCKit unstable”3.0.0a38“b)pod try“MobileVLCKit unstable”输出:更新规范存储库。正在尝试MobileVLCKit unstable[!]/usr/bin/curl-f-L-o/private/var/folders/p3/jzgk4rcj15r\u w9d2j9cqn40000gn/T/CocoaPods/Try/MobileVLCKit unstable/file.zip--create dirs--netrc optional我尝试了上述方法,在执行上述脚本后,我看不到VLCKit/build/folder