Skip to content

Commit

Permalink
Hide auto_play warning if notification's disabled.
Browse files Browse the repository at this point in the history
Resolves #200
  • Loading branch information
mrf345 committed Aug 30, 2020
1 parent 1958583 commit 37cb7c7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions templates/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@
repeat_whole: repeatType === 'whole',
repeat_each: repeatType === 'each',
auto_start: true,
autoplay_warning: playAudioNotification || playAnnouncements,
})

function play (files) {
$('video').prop('muted', true)
if (waitForEnding) Player.playAfter(files)
else {
Player.files = files
Player.load()
if (files.length) {
$('video').prop('muted', true)
if (waitForEnding) Player.playAfter(files)
else {
Player.files = files
Player.load()
}
}
}

Expand Down

0 comments on commit 37cb7c7

Please sign in to comment.