Commit 7a779849 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Implement -playMedia:.

parent 5995f330
......@@ -32,4 +32,10 @@
*/
- (void)play;
- (void)stop;
/**
* media must be in the current media list.
*/
- (void)playMedia:(VLCMedia *)media;
@end
......@@ -88,6 +88,14 @@
return _rootMedia;
}
- (void)playMedia:(VLCMedia *)media
{
libvlc_exception_t ex;
libvlc_exception_init(&ex);
libvlc_media_list_player_play_item(instance, [media libVLCMediaDescriptor], &ex);
catch_exception(&ex);
}
- (void)play
{
libvlc_exception_t ex;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment