Skip to content
Snippets Groups Projects
Commit fd0be5fb authored by Thomas Guillem's avatar Thomas Guillem
Browse files

PlaybackService: add slaves

parent fb9aeba2
No related branches found
No related tags found
No related merge requests found
......@@ -1707,6 +1707,12 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
mPausable = mSeekable = true;
final Media media = new Media(VLCInstance.get(), mw.getUri());
VLCOptions.setMediaOptions(media, this, flags | mw.getFlags());
if (mw.getSlaves() != null) {
for (Media.Slave slave : mw.getSlaves())
media.addSlave(slave);
}
media.setEventListener(mMediaListener);
mMediaPlayer.setMedia(media);
media.release();
......
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