Commit dfc28997 authored by Faustino Osuna's avatar Faustino Osuna

MacOSX/Framework/Examples: Updatee example to properly scale video within window.

parent 0554ff0a
...@@ -20,6 +20,7 @@ static void *sleepForMe(void) ...@@ -20,6 +20,7 @@ static void *sleepForMe(void)
videoView = [[VLCVideoView alloc] initWithFrame:rect]; videoView = [[VLCVideoView alloc] initWithFrame:rect];
[videoHolderView addSubview:videoView]; [videoHolderView addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable]; [videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
videoView.fillScreen = YES;
playlist = [[VLCMediaList alloc] init]; playlist = [[VLCMediaList alloc] init];
[playlist addObserver:self forKeyPath:@"media" options:NSKeyValueObservingOptionNew context:nil]; [playlist addObserver:self forKeyPath:@"media" options:NSKeyValueObservingOptionNew context:nil];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment