Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
AudioStreamDetail

Audio stream details class used in combination with InfoTagVideo. More...

Classes

class  XBMCAddon::xbmc::AudioStreamDetail
 

Functions

 XBMCAddon::xbmc::AudioStreamDetail::AudioStreamDetail (...)
 

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


Creates a single audio stream details class for a video item wrapped by InfoTagVideo.
 
 XBMCAddon::xbmc::AudioStreamDetail::getChannels ()
 

Function: getChannels()


Get the number of channels in the stream.
 
 XBMCAddon::xbmc::AudioStreamDetail::getCodec ()
 

Function: getCodec()


Get the codec of the stream.
 
 XBMCAddon::xbmc::AudioStreamDetail::getLanguage ()
 

Function: getLanguage()


Get the language of the stream.
 
 XBMCAddon::xbmc::AudioStreamDetail::setChannels (...)
 

Function: setChannels(channels)


Set the number of channels in the stream.
 
 XBMCAddon::xbmc::AudioStreamDetail::setCodec (...)
 

Function: setCodec(codec)


Set the codec of the stream.
 
 XBMCAddon::xbmc::AudioStreamDetail::setLanguage (...)
 

Function: setLanguage(language)


Set the language of the stream.
 

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()

XBMCAddon::xbmc::AudioStreamDetail::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()

XBMCAddon::xbmc::AudioStreamDetail::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()

XBMCAddon::xbmc::AudioStreamDetail::getCodec ( )

Function: getCodec()


Get the codec of the stream.

Returns
[string] Codec of the stream

v20 Python API changes
New function added.

◆ getLanguage()

XBMCAddon::xbmc::AudioStreamDetail::getLanguage ( )

Function: getLanguage()


Get the language of the stream.

Returns
[string] Language of the stream

v20 Python API changes
New function added.

◆ setChannels()

XBMCAddon::xbmc::AudioStreamDetail::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()

XBMCAddon::xbmc::AudioStreamDetail::setCodec ( ...)

Function: setCodec(codec)


Set the codec of the stream.

Parameters
codecstring - Codec of the stream.

v20 Python API changes
New function added.

◆ setLanguage()

XBMCAddon::xbmc::AudioStreamDetail::setLanguage ( ...)

Function: setLanguage(language)


Set the language of the stream.

Parameters
languagestring - Language of the stream.

v20 Python API changes
New function added.