Skip to content

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

Interface: RadioOptions ​

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

Options of createRadio.

Properties ​

deck ​

deck: RadioDeck

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


last? ​

optional last?: string

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

The id of the station last picked: the first car of the session plays it, when its radio comes on.


now? ​

optional now?: () => number

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

The time (ms since 1970); Date.now by default.

Returns ​

number


picked? ​

optional picked?: (id) => void

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

A station was picked (by a key, the wheel or the phone): its id, or '' for off.

Parameters ​

id ​

string

Returns ​

void


stations ​

stations: readonly Station[]

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