mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
parent
ec6373829a
commit
776cf51a58
1 changed files with 5 additions and 3 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue