1
0
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:
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,10 +54,14 @@ class Player {
} }
/** /**
* * Pause playing the video if it's already playing.
*/ */
pause() { pause() {
this.player.pauseVideo(); if (this.player &&
this.player.pauseVideo &&
this.player.getPlayerState() === 1) {
this.player.pauseVideo();
}
} }
/** /**