diff --git a/API.md b/API.md index 7b073748..6130bdb9 100644 --- a/API.md +++ b/API.md @@ -1643,6 +1643,47 @@ this.player.seek(120, 50); // Seek to 2 minutes with +/- 50 milliseconds accurac Platforms: iOS +### setPlayerStatus +`setPlayerStatus(shouldPlay: boolean): Promise` + +Play/Pause the video. + +Example: +``` +this.player.setPlayerStatus(true); // Play the video +this.player.setPlayerStatus(false); // Pause the video +``` + +platforms: Android, iOS + +### pause +`pause(): Promise` + +Pause the video. + +Example: +``` +this.player.pause(); +``` + +NOTE: This is the same as calling `setPlayerStatus(false)` + +Platforms: Android, iOS + +### play +`play(): Promise` + +Play the video. + +Example: +``` +this.player.play(); +``` + +NOTE: This is the same as calling `setPlayerStatus(true)` + +Platforms: Android, iOS + #### Static methods ### Video Decoding capabilities