VLC Mac os Framework set crop and aspect ratio

This forum is about all development around libVLC.
shender
New Cone
New Cone
Posts: 5
Joined: 25 Oct 2010 11:54

VLC Mac os Framework set crop and aspect ratio

Postby shender » 03 Nov 2010 16:12

Hi guys. Use http://wiki.videolan.org/Mac_OS_X_Framework
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];
All nice. but does not work setting aspect-ratio and crop geometry.

Code: Select all

[context->player setVideoAspectRatio : ratio.toUtf8().data() ] ; [context->player setVideoCropGeometry : crop.toUtf8().data() ] ;
Use C++ qt framework. thanks

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 7 guests