You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -384,6 +384,7 @@ public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Conf
384
384
|**`position`**| Returns promise that then returns the current position of the player in seconds. |`none`|
385
385
|**`toggleSpeed`**| Toggles the player speed one of `0.5`, `1.0`, `1.5`, `2.0`. |`none`|
386
386
|**`setSpeed`**| Sets the player speed. |`Double`|
387
+
|**`setVolume`**| Sets the player volume. |`Double`|
387
388
|**`setPlaylistIndex`**| Sets the current playing item in the loaded playlist. |`Int`|
388
389
|**`setControls`**| Sets the display of the control buttons on the player. |`Boolean`|
389
390
|**`setLockScreenControls`**|*(iOS only)* Sets the locks screen controls for the currently playing media, can be used to control what player to show the controls for. |`Boolean`|
@@ -393,6 +394,7 @@ public void onPictureInPictureModeChanged(boolean isInPictureInPictureMode, Conf
393
394
|**`getAudioTracks`**| Returns promise that returns an array of [AudioTracks](#AudioTrack)|`none`|
394
395
|**`getCurrentAudioTrack`**| Returns promise that returns the index of the current audio track in array returned by getAudioTracks |`none`|
395
396
|**`setCurrentAudioTrack`**| Sets the current audio track to the audio track at the specified index in the array returned by getAudioTracks |`Int`|
397
+
|**`setCurrentCaptions`**| Turns off captions when argument is 0. Setting argument to another integer, sets captions to track at playlistItem.tracks[integer - 1]|`Int`|
0 commit comments