我想将VLC用于我的流实时摄像机项目
我使用了pod 'MobileVLCKit'
这是我的代码
class CameraViewController: UIViewController,VLCMediaPlayerDelegate{
var mediaPlayer = VLCMediaPlayer()
override func viewDidLoad() {
super.viewDidLoad()
mediaPlayer.delegate = self
mediaPlayer.drawable = playerView
let url = NSURL(string: "URL HERE")
mediaPlayer.media = VLCMedia(URL: url!)
mediaPlayer.play()
}
}
我有很多警告
2016-05-24 20:17:02.378 Gideon[2046:458768] creating player instance using shared library
[0000000148b59058] core generic error: option marq-color does not exist
[0000000148b59058] core generic error: option marq-opacity does not exist
[0000000148b59058] core generic error: option marq-position does not exist
[0000000148b59058] core generic error: option marq-refresh does not exist
[0000000148b59058] core generic error: option marq-size does not exist
[0000000148b59058] core generic error: option marq-timeout does not exist
[0000000148b59058] core generic error: option marq-x does not exist
[0000000148b59058] core generic error: option marq-y does not exist
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
rstp url工作正常
mp4a正在运行,但即时收到警报错误:here
mjpg根本不工作:here