Skip to content

Commit

Permalink
[DONE] Liveevent unmute (#1075)
Browse files Browse the repository at this point in the history
* enable sound on live event

* add let

* remove unnecessary variables
  • Loading branch information
mattbild authored Mar 13, 2024
1 parent 55173ba commit d0d36fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pod/live/templates/live/event-script.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
fluid: !{{ request.GET.is_iframe|yesno:"true,false" }},
playbackRates: [0.5, 1, 1.5, 2],
errorDisplay: false,
muted: false,
loop: false
}

Expand Down Expand Up @@ -632,7 +633,7 @@

/**
* Displays the waiting video (if any).
* @param withModal: if modal should be added on top.
* @param withModal if modal should be added on top.
*/
function showWaitingVideo(withModal){
if (video_on_hold_is_displayed) {
Expand Down Expand Up @@ -766,7 +767,10 @@
{% endif %}

{% if event.is_current %}
showWaitingVideo(true);
// timeout pour éviter que la video d'attente démarre pour moins d'une sec et demie
setTimeout(() => {
showWaitingVideo(true);
}, 1500);
{% endif %}

reloadIfNeeded();
Expand Down

0 comments on commit d0d36fc

Please sign in to comment.