From e7276922a27ae00718ffe25bf9bac404e637e4f9 Mon Sep 17 00:00:00 2001 From: KrzysztofMoch Date: Mon, 18 Sep 2023 14:21:20 +0200 Subject: [PATCH] docs: update API docs --- API.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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