Commit bb2eb018 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCMediaListPlayer: add previous, next, playItemAtIndex selectors

parent f172f04f
......@@ -64,6 +64,14 @@ typedef NSInteger VLCRepeatMode;
- (void)pause;
- (void)stop;
/**
* previous, next, play item at index
* \return 0 on success, -1 if there is no such item
*/
- (int)next;
- (int)previous;
- (int)playItemAtIndex:(int)index;
/**
* Playmode selection (don't repeat anything, repeat one, repeat all)
* See VLCRepeatMode.
......
......@@ -23,6 +23,7 @@ New APIs:
- VLCMediaListPlayer:
- added initWithOptions selector matching VLCMediaPlayer's implementation
- added pause selector
- added previous, next and playItemAtIndex selectors
Modified API behavior:
- VLCMediaPlayer:
......
......@@ -128,6 +128,21 @@
libvlc_media_list_player_stop(instance);
}
- (int)next
{
return libvlc_media_list_player_next(instance);
}
- (int)previous
{
return libvlc_media_list_player_previous(instance);
}
- (int)playItemAtIndex:(int)index
{
return libvlc_media_list_player_play_item_at_index(instance, index);
}
- (void)setRepeatMode:(VLCRepeatMode)repeatMode
{
libvlc_playback_mode_t mode;
......
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