onPlaybackStart

suspend fun onPlaybackStart(itemId: <Error class: unknown class>, mediaSourceId: String? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, playMethod: <Error class: unknown class>? = null, liveStreamId: String? = null, playSessionId: String? = null, canSeek: Boolean? = false): Response<Unit>

Reports that a session has begun playing an item.

Parameters

itemId

Item id.

mediaSourceId

The id of the MediaSource.

audioStreamIndex

The audio stream index.

subtitleStreamIndex

The subtitle stream index.

playMethod

The play method.

liveStreamId

The live stream id.

playSessionId

The play session id.

canSeek

Indicates if the client can seek.


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

Reports that a session has begun playing an item.

Parameters

request

The request parameters