Skip to content
Snippets Groups Projects
Commit ce38deee authored by Diogo Simao Marques's avatar Diogo Simao Marques
Browse files

VLCMediaListPlayer: Set the media player's media

Set the media player's media when the playItemAtNumber method is
called.

Closes #669
parent db544985
No related branches found
No related tags found
No related merge requests found
......@@ -255,7 +255,11 @@ static void HandleMediaListPlayerStopped(const libvlc_event_t * event, void * se
- (void)playItemAtNumber:(NSNumber *)index
{
libvlc_media_list_player_play_item_at_index(instance, [index intValue]);
dispatch_async(_libVLCBackgroundQueue, ^{
VLCMedia *media = [_mediaList mediaAtIndex:[index intValue]];
_mediaPlayer.media = media;
libvlc_media_list_player_play_item_at_index(instance, [index intValue]);
});
}
- (void)setRepeatMode:(VLCRepeatMode)repeatMode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment