Skip to content

Scrypted Documentation / MediaPlayer

Interface: MediaPlayer

MediaPlayer allows media playback on screen or speaker devices, such as Chromecasts or TVs.

Methods

getMediaStatus()

getMediaStatus(): Promise<MediaStatus>

Returns

Promise<MediaStatus>


load()

load(media, options?): Promise<void>

Parameters

media: string | MediaObject

options?: MediaPlayerOptions

Returns

Promise<void>


seek()

seek(milliseconds): Promise<void>

Parameters

milliseconds: number

Returns

Promise<void>


skipNext()

skipNext(): Promise<void>

Returns

Promise<void>


skipPrevious()

skipPrevious(): Promise<void>

Returns

Promise<void>