Fix for .stop() method (fixes #819)

This commit is contained in:
Sam Potts
2018-03-22 01:02:38 +11:00
parent 17041efc71
commit c251c94131
12 changed files with 66 additions and 41 deletions

View File

@ -379,8 +379,11 @@ class Plyr {
* Stop playback
*/
stop() {
this.restart();
this.pause();
if (this.isHTML5) {
this.media.load();
} else {
this.media.stop();
}
}
/**