Webportal v1

embedded apps

API Reference - Media.GetMediaState()

Media.GetMediaState()

Type Method
Min Privacy Full
wave 2
wave 3
wave 4

Media.GetMediaState()

Description Gets the state of the media currently connected.
Response Number State of the media.
Parameter Void

Example

1
2
3
4
//Check the state of the media
if (Media.GetMediaState() === 2) {
	// Media currently playing
}

Remark

The possible values returned are the following:

Value State
1 stop
2 play
3 pause
4 seek up
5 seek down

Appeared in Software version 30.10.10.00