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() {
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.