VLCKit: Difference between revisions
Jump to navigation
Jump to search
Pdherbemont (talk | contribs) |
|||
| Line 1: | Line 1: | ||
=== Build the framework === | === Build the framework === | ||
* open <code>. | * Clone git.videolan.org/vlc-bindings/VLCKit.git | ||
* open <code>.VLCKit.xcodeproj</code> | |||
* make sure the VLCKit target is selected | * make sure the VLCKit target is selected | ||
* | * build the project | ||
this should automatically build vlc itself. | |||
== Basic usage in your application == | == Basic usage in your application == | ||
The code should speak by itself | The code should speak by itself | ||
Revision as of 13:23, 29 September 2012
Build the framework
- Clone git.videolan.org/vlc-bindings/VLCKit.git
- open
.VLCKit.xcodeproj - make sure the VLCKit target is selected
- build the project
this should automatically build vlc itself.
Basic usage in your application
The code should speak by itself
// 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];
Sample code
You should be able to find sample code in:
./vlc/projects/macosx/framework/Examples: This is the folder that contains the VLC.framework basics usage.
./vlc/projects/macosx/vlc_app: This is the VLC application that uses the framework intensivly, this is much more advanced.