I'm trying to run this simple code:
Code: Select all
videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]];
[[window contentView] addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
// Init the player object
player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
media = [[VLCMedia alloc] initWithURL:[NSURL URLWithString:@"http://video.ted.com/talk/podcast/2011/None/MikeMatas_2011.mp4"]];
[player setMedia:media];
[player play];
I init VLCMedia with local movie and all run ok. But When I try load a http movie I received error. Help please!