Skip to content

MediaPlayerInterfaceNowPlayingAttribute

HTTP API schema

Media identity observed on this route. Active false means the provider session is on another target; it does not prove the speaker is silent through other providers.

MediaPlayerInterfaceNowPlayingAttribute fields

activebooleanRequired
mediaIdMediaId
contextMediaIdMediaId
namestring
providerstring

Media service that holds the active session, when the route can name it (a TV reports the app that owns its media session, for example YouTube or Spotify). Omitted when the app is not a known service; use appId then.

appIdstring

Device-native identifier of the app that holds the session, such as an Android package name (com.google.android.youtube.tv). Opaque; compare for equality only.

minLength: 1

positionMsinteger

Provider-observed position within the current media item in milliseconds. Omitted when unknown. Compare fresh observations with media identity and playback state; a track transition does not prove continuity.

minimum: 0

queuePositioninteger

1-based position of the current item in the session's queue, such as the image a show-images slideshow shows. Omitted when the session has no queue the route can read.

minimum: 1

queueLengthinteger

Number of items in the session's queue, such as the images of a show-images slideshow. Omitted when the session has no queue the route can read.

minimum: 1

View source specification ↗