Thanks to Felix's build changes I can now build and run VLCKit from 2.1 (unstable) just fine, but I need some more advice please...
I'm trying to overlap a transparent-background WebView on top of the VLCVideoView, but the video always forces itself to the front. Is there any way of making this work with plain ol' views, or do I need to look at VLCVideoLayer? If so is this considered usable, and does anyone have any examples?
Here's my current test code, FWIW, which was mostly pinched from http://kermit.epska.org/2010/how-to-set ... t-in-os-x/
Code: Select all
- (void)awakeFromNib
{
// Create VLCVideoView inside videoHolderView, taking all of it
NSRect rect = NSMakeRect(0, 0, 0, 0);
rect.size = [videoHolderView frame].size;
videoView = [[VLCVideoView alloc] initWithFrame:rect];
[videoHolderView addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
videoView.fillScreen = YES;
// Create player
player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
[player setMedia:[VLCMedia mediaWithURL: [NSURL URLWithString:@"rtsp://barque/testcard"]]];
[player play];
// Load Web page in webView
[[webView mainFrame] loadRequest:[NSURLRequest requestWithURL:
[NSURL URLWithString:@"http://barque/gui/main"]]];
}
Many thanks again!
Paul