UNPKG
@plupyt/mediaplayer
Version:
latest (1.0.0)
1.0.0
Reproductor de video
@plupyt/mediaplayer
/
lib
/
plugins
/
AutoPlay.js
13 lines
(12 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
AutoPlay
=
/**
@class
*/
(
function
(
) {
function
AutoPlay
(
) { }
AutoPlay
.
prototype
.
run
=
function
(
player
) {
if
(!player.
media
.
muted
) { player.
media
.
muted
=
true
; } player.
play
(); };
return
AutoPlay
; }());
export
default
AutoPlay
;