Commit 911cd4d1 authored by Geoffrey Métais's avatar Geoffrey Métais

Load slaves saved in db at playback

parent 643002a1
...@@ -1719,6 +1719,14 @@ public class PlaybackService extends Service implements IVLCVout.Callback { ...@@ -1719,6 +1719,14 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
} }
}); });
} }
VLCApplication.runBackground(new Runnable() {
@Override
public void run() {
final ArrayList<Media.Slave> list = MediaDatabase.getInstance().getSlaves(mw.getLocation());
for (Media.Slave slave : list)
mMediaPlayer.addSlave(slave.type, Uri.parse(slave.uri));
}
});
media.setEventListener(mMediaListener); media.setEventListener(mMediaListener);
mMediaPlayer.setMedia(media); mMediaPlayer.setMedia(media);
......
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