Skip to content

StreamPlayer() - Classes


Properties

audios
available
maxBitrate
unplayable_reason
videos

Functions

bestAudio
bestVideo

Functions

Function bestAudio()

Get the best audio quality

Builder:

javascript
StreamPlayer.bestAudio()

Return:  Player

Function bestVideo()

Get the best video quality

Builder:

javascript
StreamPlayer.bestVideo()

Return:  Player

Properties

audios

The array of the music files streamable

Builder:

javascript
StreamPlayer.audios

Return:arrayLink<Player>

available

If it's available

Builder:

javascript
StreamPlayer.available

Return:booleanLink

maxBitrate

The max bitrate of the music

Builder:

javascript
StreamPlayer.maxBitrate

Return:numberLink

unplayable_reason

Show unplayable reason

Builder:

javascript
StreamPlayer.unplayable_reason

Return:stringLink

videos

The array of the video files streamable

Builder:

javascript
StreamPlayer.videos

Return:arrayLink<Player>