Playlist: clearQueue function
This commit is contained in:
parent
d8fd1ff3dd
commit
6bbfb175f5
1 changed files with 7 additions and 0 deletions
|
@ -77,6 +77,13 @@ MediaPlayer {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearQueue() {
|
||||||
|
while (queue.length) {
|
||||||
|
queue.shift()
|
||||||
|
}
|
||||||
|
queueUpdated()
|
||||||
|
}
|
||||||
|
|
||||||
function playbackEpisode(episode_id) {
|
function playbackEpisode(episode_id) {
|
||||||
if (episode == episode_id) {
|
if (episode == episode_id) {
|
||||||
// If the episode is already loaded, just start playing
|
// If the episode is already loaded, just start playing
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue