vlckit error - "libvlc has thrown us an error: (null)"
Posted: 16 Jan 2010 03:40
After having had quite a hard time getting VLC (1.0.4) and vlckit to compile on a Mac OS X 10.6.0 system I finally managed to get that done, but now I'm trying to use the vlckit framework in my cocoa app.
I've added it to my project, included the vlckit header and all looks ok.
Creation of the videoView does work fine and I get a black viewer in the app. so far so good.
But when i try to init VLCMediaPlayer i get this error in my console and the viewer stays black:
Now, the first thing i noticed is that the path it refers to is the path of the original implementation file and not the framework which is in my xcode project, but not sure what to do to resolve this.
The code I'm using is literally the example code:
Does anyone know what I'm doing wrong here?
Thanks
Skip
I've added it to my project, included the vlckit header and all looks ok.
Creation of the videoView does work fine and I get a black viewer in the app. so far so good.
But when i try to init VLCMediaPlayer i get this error in my console and the viewer stays black:
Code: Select all
libvlc has thrown us an error: (null) (/Users/skip/Desktop/vlc2/projects/macosx/framework/Sources/VLCLibrary.m:97 -[VLCLibrary init])
The code I'm using is literally the example code:
Code: Select all
VLCVideoView *videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]];
[[window contentView] addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
[player setMedia:[VLCMedia mediaWithPath:@"/trailerdl.mp4"]];
[player play];
Thanks
Skip