UNPKG
@imorochi/iplayer
Version:
latest (1.0.0)
1.0.0
Proyecto media player con JS.
@imorochi/iplayer
/
src
/
plugins
/
AutoPlay.ts
15 lines
(11 loc)
•
268 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import
MediaPlayer
from
"../MediaPlayer"
;
class
AutoPlay
{
constructor
(
) {}
run
(
player: MediaPlayer
) {
if
(!player.
media
.
muted
) { player.
media
.
muted
=
true
; } player.
play
(); } }
export
default
AutoPlay
;