1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
daniel 2020-04-24 13:13:07 -03:00
parent ec6373829a
commit 776cf51a58

View file

@ -599,12 +599,14 @@ function playerPlay(currentTime) {
player.muted(true); player.muted(true);
playerPlay(currentTime); playerPlay(currentTime);
} else { } else {
if (player.muted() && !inIframe()) { if (player.muted() && !inIframe()) {
var span = document.createElement("span");
span.innerHTML = "<b>Would</b> you like to unmute it?<div id='allowAutoplay' style='max-height: 100px; overflow-y: scroll;'></div>";
swal({ swal({
title: "Your Media is Muted", title: "Your Media is Muted",
text: "<b>Would</b> you like to unmute it?<div id='allowAutoplay' style='max-height: 100px; overflow-y: scroll;'></div>", icon: "warning",
icon: "warning",
buttons: true, buttons: true,
content: span,
dangerMode: true, dangerMode: true,
}) })
.then((willDelete) => { .then((willDelete) => {