MediaInfoApi

class MediaInfoApi(api: ApiClient) : Api

Constructors

Link copied to clipboard
constructor(api: ApiClient)

Functions

Link copied to clipboard
suspend fun closeLiveStream(liveStreamId: String): Response<Unit>

Closes a media source.

Link copied to clipboard

Tests the network with a request with the size of the bitrate.

Link copied to clipboard

Tests the network with a request with the size of the bitrate.

Link copied to clipboard
suspend fun getPlaybackInfo(itemId: UUID, userId: UUID? = null): Response<PlaybackInfoResponse>

Gets live playback media info for an item.

Link copied to clipboard

For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.

Link copied to clipboard
suspend fun getPostedPlaybackInfoDeprecated(itemId: UUID, userId: UUID? = null, maxStreamingBitrate: Int? = null, startTimeTicks: Long? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, maxAudioChannels: Int? = null, mediaSourceId: String? = null, liveStreamId: String? = null, autoOpenLiveStream: Boolean? = null, enableDirectPlay: Boolean? = null, enableDirectStream: Boolean? = null, enableTranscoding: Boolean? = null, allowVideoStreamCopy: Boolean? = null, allowAudioStreamCopy: Boolean? = null, data: PlaybackInfoDto? = null): Response<PlaybackInfoResponse>

For backwards compatibility parameters can be sent via Query or Body, with Query having higher precedence. Query parameters are obsolete.

Link copied to clipboard
suspend fun openLiveStream(request: OpenLiveStreamRequest = OpenLiveStreamRequest(), data: OpenLiveStreamDto? = null): Response<LiveStreamResponse>
suspend fun openLiveStream(openToken: String? = null, userId: UUID? = null, playSessionId: String? = null, maxStreamingBitrate: Int? = null, startTimeTicks: Long? = null, audioStreamIndex: Int? = null, subtitleStreamIndex: Int? = null, maxAudioChannels: Int? = null, itemId: UUID? = null, enableDirectPlay: Boolean? = null, enableDirectStream: Boolean? = null, alwaysBurnInSubtitleWhenTranscoding: Boolean? = null, data: OpenLiveStreamDto? = null): Response<LiveStreamResponse>

Opens a media source.