1
0
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:
Antonio Laguna
2017-03-23 22:36:43 +01:00
parent f21b207fee
commit 0c1a7ca55f

View File

@@ -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.