on xenial help sign in
Set the playlist at the beginning
ebd6beeAlbert Astals Cid
plugins/Dash/DashAudioPlayer.qml+3−1
@@ -44,6 +44,8 @@ QtObject {
44 audio.playlist = null;
44 audio.playlist = null;
45 if (newPlaylist) {
45 if (newPlaylist) {
46 playlist.clear();
46 playlist.clear();
47+ audio.playlist = playlist;
48+
47 // Look for newSource in newPlaylist
49 // Look for newSource in newPlaylist
48 var sourceIndex = -1;
50 var sourceIndex = -1;
49 for (var i in newPlaylist) {
51 for (var i in newPlaylist) {
@@ -61,7 +63,6 @@ QtObject {
61 playlist.addSource(newPlaylist[i]);
63 playlist.addSource(newPlaylist[i]);
62 }
64 }
63 playlist.currentIndex = sourceIndex;
65 playlist.currentIndex = sourceIndex;
64− audio.playlist = playlist;
65 } else {
66 } else {
66 audio.source = newSource;
67 audio.source = newSource;
67 }
68 }
@@ -69,6 +70,7 @@ QtObject {
69 }
70 }
70
71
71 function stop() {
72 function stop() {
73+console.log("STop2");
72 audio.stop();
74 audio.stop();
73 }
75 }
74
76