Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
AudioStreamDetail

Detailed Description

Audio stream details class used in combination with InfoTagVideo.

Class: xbmc.AudioStreamDetail([channels, codec, language])

Represents a single selectable audio stream for a video item wrapped by InfoTagVideo.


v20 Python API changes
New class added.

Example:

...
audiostream = xbmc.AudioStreamDetail(6, 'DTS', 'English')
...

Function Documentation

◆ AudioStreamDetail()

Function: xbmc.AudioStreamDetail([channels, codec, language])


Creates a single audio stream details class for a video item wrapped by InfoTagVideo.

Parameters
channels[opt] integer - Number of channels in the audio stream.
codec[opt] string - Codec of the audio stream.
language[opt] string - Language of the audio stream.

v20 Python API changes
New function added.

Example:

...
audiostream = xbmc.AudioStreamDetail(6, 'DTS', 'English')
...

◆ getChannels()

getChannels ( )

Function: getChannels()


Get the number of channels in the stream.

Returns
[integer] Number of channels in the stream

v20 Python API changes
New function added.

◆ getCodec()

getCodec ( )

Function: getCodec()


Get the codec of the stream.

Returns
[string] Codec of the stream

v20 Python API changes
New function added.

◆ getLanguage()

getLanguage ( )

Function: getLanguage()


Get the language of the stream.

Returns
[string] Language of the stream

v20 Python API changes
New function added.

◆ setChannels()

setChannels ( ...)

Function: setChannels(channels)


Set the number of channels in the stream.

Parameters
channelsinteger - Number of channels in the stream.

v20 Python API changes
New function added.

◆ setCodec()

setCodec ( ...)

Function: setCodec(codec)


Set the codec of the stream.

Parameters
codecstring - Codec of the stream.

v20 Python API changes
New function added.

◆ setLanguage()

setLanguage ( ...)

Function: setLanguage(language)


Set the language of the stream.

Parameters
languagestring - Language of the stream.

v20 Python API changes
New function added.