mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-18 19:02:00 +02:00
Adding more docs
This commit is contained in:
@@ -40,7 +40,7 @@ class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Plays the video.
|
||||||
*/
|
*/
|
||||||
play() {
|
play() {
|
||||||
if (this.ready) {
|
if (this.ready) {
|
||||||
@@ -54,11 +54,15 @@ class Player {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Pause playing the video if it's already playing.
|
||||||
*/
|
*/
|
||||||
pause() {
|
pause() {
|
||||||
|
if (this.player &&
|
||||||
|
this.player.pauseVideo &&
|
||||||
|
this.player.getPlayerState() === 1) {
|
||||||
this.player.pauseVideo();
|
this.player.pauseVideo();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get player vars by element.
|
* Get player vars by element.
|
||||||
|
Reference in New Issue
Block a user