Difference between revisions of "VLCKit"
Jump to navigation
Jump to search
(→Sample code: correcting 2nd path, make more readable) |
|||
Line 3: | Line 3: | ||
=== Build the framework === | === Build the framework === | ||
+ | * [http://www.customessaywritinghelp.com/ custom essay writing] | ||
* open <code>./vlc/projects/macosx/framework/VLCKit.xcodeproj</code> | * open <code>./vlc/projects/macosx/framework/VLCKit.xcodeproj</code> | ||
* make sure the VLCKit target is selected | * make sure the VLCKit target is selected | ||
Line 8: | Line 9: | ||
this should autatically build vlc itself at the same time in projects/macosx/framework/build/vlc_build_dir | this should autatically build vlc itself at the same time in projects/macosx/framework/build/vlc_build_dir | ||
+ | |||
== 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 18:49, 7 July 2010
Build the framework
- custom essay writing
- open
./vlc/projects/macosx/framework/VLCKit.xcodeproj
- make sure the VLCKit target is selected
- rightclick on target and build
this should autatically build vlc itself at the same time in projects/macosx/framework/build/vlc_build_dir
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.