Set initial controls state based on media element state

This commit is contained in:
Fernando Jiménez Moreno 2019-05-13 15:57:06 +02:00
parent 23def72787
commit 428d3b896c

View file

@ -202,7 +202,7 @@
} }
// Set initial state. // Set initial state.
this.state = PAUSED; this.state = this.media.paused ? PAUSED : PLAYING;
this.onStateChange(null); this.onStateChange(null);
} }