Skip to content

five-on-it / apps/client/src/audio/radio / RadioDeck

Interface: RadioDeck ​

Defined in: apps/client/src/audio/radio.ts:34

What plays the radio's items and streams.

Methods ​

length() ​

length(url): Promise<number>

Defined in: apps/client/src/audio/radio.ts:43

How long url lasts (s); rejects when it cannot be read.

Parameters ​

url ​

string

Returns ​

Promise<number>


play() ​

play(url, offset, volume, on): RadioTrack

Defined in: apps/client/src/audio/radio.ts:36

Plays url from offset (s) at volume; ended when it ends, failed when it cannot play.

Parameters ​

url ​

string

offset ​

number

volume ​

number

on ​
ended ​
failed ​

Returns ​

RadioTrack