![]() Returns the duration ( as a promise) of the currently playing title if available. The same goes for radio streams for example. ![]() Streams that are not fully loaded might not be seekable. Tells if the currently playing title is seekable or not. If times is set, it will loop the track as often as the passed value. If times is not set, this will toggle the mute status between not looping and infinitely looping. Will loop of a fixed number of times (number), infinitely ( inf) or will stop looping ( no) times (optional) can be any number > 0, inf or no.Going beyond the boundaries of a title results in playback stopping Jumps to the position specified by seconds. Return - a promise that is resolved once the track is being played again or rejected if something went wrong absolute Jumps to the position at x seconds in the current track.relative (default) Searches x seconds from the current track position.Depending on mode, it is searched onwards from the current position, or jumped to the set position, given by seconds Will search/jump within the current track. If this results in the volume going below 0 or above 100 it will be set to 0 or 100 respectively All values below or above will just set the volume to 0 or 100 respectivelyĪdjusts the volume with the specified value. If set to true the player is muted, if set to false the player is unmuted, regardless of the current state set (optional) If not set, the mute state is toggled.The mute state can either be toggled or set explicitly Return - a promise that resolves if everything went fine and the file or stream is playing (or appended when mode was set to append) and is rejected with an error message when something went wrong There is another append function in the playlist section, which can be used to append either files or streams. options (optional) an array that can be used to pass additional options to MPV.If the playlist is empty this file will be played append-play appends the file to the playlist. ![]() append appends the file to the playlist.replace (default) replace the current title and play it immediately.This behaviour can be changed using the mode option. Will load the content (either a file, a url or any supported protocol) and start playing it. ![]() This method is an exception, it does not return a Promise The process in the background is terminated and all socket connection is closed. It's very very close to a stable version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |