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