[Android] PlaybackService: add slaves

Thomas Guillem git at videolan.org
Thu May 19 15:58:35 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed May 18 16:57:47 2016 +0200| [fd0be5fb7f2c7174aa89cd62e7f8200b3e64b4b4] | committer: Thomas Guillem

PlaybackService: add slaves

> https://code.videolan.org/videolan/vlc-android/commit/fd0be5fb7f2c7174aa89cd62e7f8200b3e64b4b4
---

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index bfb21c0..6711531 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -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();



More information about the Android mailing list