VLCKit: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
No edit summary
Update with the one-click build, and sample code.
Line 1: Line 1:
== How to build the framework ==
== How to build the framework ==
  $ ./bootstrap
You have '''two''' options:
$ ./configure
=== One-click build ===
$ make
* get the [[SVN|VLC Source Code from SVN]]
$ cd extra/MacOSX/Framework
* open vlc-trunk/extras/MacOSX/Framework/VLC.xcodeproj
$ make
* Hit build.
Sample application is in extra/MacOSX/Framework/Examples.
* Voilà!
=== Terminal build ===
  $ cd extras/contrib && ./bootstrap && make && cd ../.. && ./bootstrap &&./configure && make && cd extra/MacOSX/Framework && make


== to do ==
== The basics ==
* timeline support
The code should speak by itslef
* media_list_view support from the VLCPlaylist object.
  // 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:
* Framework/Example: This is the folder that contains the VLC.framework basics usage.
 
* extras/MacOSX/VLC_app: This is the VLC application that uses the framework intensivly, this is much more advanced.

Revision as of 16:46, 2 January 2008

How to build the framework

You have two options:

One-click build

Terminal build

$ cd extras/contrib && ./bootstrap && make && cd ../.. && ./bootstrap &&./configure && make && cd extra/MacOSX/Framework && make

The basics

The code should speak by itslef

  // 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:

  • Framework/Example: This is the folder that contains the VLC.framework basics usage.
  • extras/MacOSX/VLC_app: This is the VLC application that uses the framework intensivly, this is much more advanced.