我正在使用xcode 7.2也在xcode 6.4(Swift)中使用它同样的问题
我正在使用MobileVLCKit的cocoapod http://cocoadocs.org/docsets/MobileVLCKit/2.2.1/index.html
我在控制台得到这个:
2015-12-22 18:17:01.296 test11[3626:79386] creating player instance using shared library
[00007ff3d0d850f8] core generic error: option marq-color does not exist
[00007ff3d0d850f8] core generic error: option marq-opacity does not exist
[00007ff3d0d850f8] core generic error: option marq-position does not exist
[00007ff3d0d850f8] core generic error: option marq-refresh does not exist
[00007ff3d0d850f8] core generic error: option marq-size does not exist
[00007ff3d0d850f8] core generic error: option marq-timeout does not exist
[00007ff3d0d850f8] core generic error: option marq-x does not exist
[00007ff3d0d850f8] core generic error: option marq-y does not exist
[00007ff3d10b0cb8] core video output error: video output creation failed
[00007ff3d1058cb8] core decoder error: failed to create video output
[00007ff3d0cbd0a8] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 1000 ms)
[00007ff3d0cbd0a8] core input error: ES_OUT_RESET_PCR called
[00007ff3d0cbd0a8] core input error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 2693 ms)
我的代码是:
let a = VLCMedia(URL: NSURL(string: "http://lilanisoft.com/live/images/Ziyarat_Aashura_by_Samavati_Arabic_sub_English.mp4"))
let v = VLCMediaPlayer()
v.drawable = self.view
v.setDelegate(self)
v.setMedia(a)
v.play()
如果我有任何错误,请告诉我。
更多视频网址(如果您正在考虑视频格式问题)是:
RTMP://5.79.86.21/live//ih http://makkah1live.itworkscdn.net/makkah2live/sunnatv_360p/playlist.m3u8 http://lilanisoft.com/live/images/Ziyarat-e-Arbaeen.mp4