Play streaming video on libVLC iOS
Posted: 23 Aug 2016 12:25
Hi forum,
I am working on an iOS application that play a streaming video from a Mobotix camera. They use MxPEG format. I tried MobileVLCKit 2.2.2 and the unstable version 3.0.0a10 with Cocoapods. However, with version 2.2.2. I can hear audio and with 3.0.0 just see a frame. This is the code, in summary:
Furthermore, I tried a single video downloading it from a server and it works. I do not know if it a problem of the format or the streaming.
I would appreciate it if you could suggest me other way to do it or the solution itself.
Thanks you in advance,
Isleo.
I am working on an iOS application that play a streaming video from a Mobotix camera. They use MxPEG format. I tried MobileVLCKit 2.2.2 and the unstable version 3.0.0a10 with Cocoapods. However, with version 2.2.2. I can hear audio and with 3.0.0 just see a frame. This is the code, in summary:
Code: Select all
_mediaplayer = [[VLCMediaPlayer alloc] init];
_mediaplayer.delegate = self;
_mediaplayer.drawable = self.movieView;
NSArray *options = @[@"-vvv",@"--avformat-format=mxg"];
_mediaplayer = [_mediaplayer initWithOptions:options];
_mediaplayer.media = [VLCMedia mediaWithURL:[NSURL URLWithString:@"http://192.168.1.23/control/faststream.jpg?source=MxPEG"]];
I would appreciate it if you could suggest me other way to do it or the solution itself.
Thanks you in advance,
Isleo.