Make test project as in wiki
Code: Select all
// Set up a videoView by hand. You can also do that in the nib file
videoView = [[VLCVideoView alloc] initWithFrame:[[window contentView] bounds]];
[[window contentView] addSubview:videoView];
[videoView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
// Init the player object
player = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
[player setMedia:[VLCMedia mediaWithPath:@"/to/my/movie"]];
[player play];
Code: Select all
[context->player setVideoAspectRatio : ratio.toUtf8().data() ] ;
[context->player setVideoCropGeometry : crop.toUtf8().data() ] ;