Error while dislpaying video on iOS device
Posted: 20 Aug 2013 07:51
Hi All,
I managed to build a test application from libvlc and running the same on the iOS device, but while displaying the video on the screen, i am getting following errors:
Can some pointers be shared as to how to setup the player object to display the video on device.
I managed to build a test application from libvlc and running the same on the iOS device, but while displaying the video on the screen, i am getting following errors:
I am not able to understand the problem of how to get over this issue and display the video on the device, sharing the code as:[0x1196010] main generic error: option marq-color does not exist
[0x1196010] main generic error: option marq-opacity does not exist
[0x1196010] main generic error: option marq-position does not exist
[0x1196010] main generic error: option marq-refresh does not exist
[0x1196010] main generic error: option marq-size does not exist
[0x1196010] main generic error: option marq-timeout does not exist
[0x1196010] main generic error: option marq-x does not exist
[0x1196010] main generic error: option marq-y does not exist
Code: Select all
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//Setup the View
[self showOnExternalDisplay];
_mediaPlayer = [[VLCMediaPlayer alloc] init];
// Do any additional setup after loading the view.
VLCMedia *media;
NSURL *url = [NSURL URLWithString:@"rtsp://localhost/stream0"];
[_mediaPlayer setDelegate:self];
[_mediaPlayer setDrawable:self.movieView];
media = [VLCMedia mediaWithURL:url];
[_mediaPlayer setMedia:media];
[_mediaPlayer play];
}
- (void)showOnExternalDisplay
{
UIScreen *screen = [UIScreen screens][0];
screen.overscanCompensation = UIScreenOverscanCompensationInsetApplicationFrame;
self.externalWindow = [[UIWindow alloc] initWithFrame:screen.bounds];
UIViewController *controller = [[VLCExternalDisplayController alloc] init];
self.externalWindow.rootViewController = controller;
[controller.view addSubview:movieView];
controller.view.frame = screen.bounds;
movieView.frame = screen.bounds;
[[AVAudioSession sharedInstance] setDelegate:self];
self.externalWindow.screen = screen;
self.externalWindow.hidden = NO;
}
Can some pointers be shared as to how to setup the player object to display the video on device.