play

suspend fun play(sessionId: String, playCommand: <Error class: unknown class>, itemIds: Collection<<Error class: unknown class>> = emptyList(), startPositionTicks: Long? = null, mediaSourceId: String? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, startIndex: Int? = null): Response<Unit>

Instructs a session to play an item.

Parameters

sessionId

The session id.

playCommand

The type of play command to issue (PlayNow, PlayNext, PlayLast). Clients who have not yet implemented play next and play last may play now.

itemIds

The ids of the items to play, comma delimited.

startPositionTicks

The starting position of the first item.

mediaSourceId

Optional. The media source id.

audioStreamIndex

Optional. The index of the audio stream to play.

subtitleStreamIndex

Optional. The index of the subtitle stream to play.

startIndex

Optional. The start index.


suspend fun play(request: <Error class: unknown class>): Response<Unit>

Instructs a session to play an item.

Parameters

request

The request parameters