getUniversalAudioStreamUrl

fun getUniversalAudioStreamUrl(itemId: <Error class: unknown class>, container: Collection<String>? = emptyList(), mediaSourceId: String? = null, deviceId: String? = null, userId: <Error class: unknown class>? = null, audioCodec: String? = null, maxAudioChannels: Int? = null, transcodingAudioChannels: Int? = null, maxStreamingBitrate: Int? = null, audioBitRate: Int? = null, startTimeTicks: Long? = null, transcodingContainer: String? = null, transcodingProtocol: <Error class: unknown class>? = null, maxAudioSampleRate: Int? = null, maxAudioBitDepth: Int? = null, enableRemoteMedia: Boolean? = null, enableAudioVbrEncoding: Boolean? = true, breakOnNonKeyFrames: Boolean? = false, enableRedirection: Boolean? = true): String

Gets an audio stream.

Parameters

itemId

The item id.

container

Optional. The audio container.

mediaSourceId

The media version id, if playing an alternate version.

deviceId

The device id of the client requesting. Used to stop encoding processes when needed.

userId

Optional. The user id.

audioCodec

Optional. The audio codec to transcode to.

maxAudioChannels

Optional. The maximum number of audio channels.

transcodingAudioChannels

Optional. The number of how many audio channels to transcode to.

maxStreamingBitrate

Optional. The maximum streaming bitrate.

audioBitRate

Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

startTimeTicks

Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

transcodingContainer

Optional. The container to transcode to.

transcodingProtocol

Optional. The transcoding protocol.

maxAudioSampleRate

Optional. The maximum audio sample rate.

maxAudioBitDepth

Optional. The maximum audio bit depth.

enableRemoteMedia

Optional. Whether to enable remote media.

enableAudioVbrEncoding

Optional. Whether to enable Audio Encoding.

breakOnNonKeyFrames

Optional. Whether to break on non key frames.

enableRedirection

Whether to enable redirection. Defaults to true.