Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Subtitle stream details class used in combination with InfoTagVideo.

Class: xbmc.SubtitleStreamDetail([language])

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


v20 Python API changes:
New class added.

Example:

...
subtitlestream = xbmc.SubtitleStreamDetail('English')
...

Modules

 InfoTagVideo
 Kodi's video info tag class.
 

Function Documentation

◆ SubtitleStreamDetail()

Function: xbmc.SubtitleStreamDetail([language])


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

Parameters
language[opt] string - Language of the subtitle.

v20 Python API changes:
New function added.

Example:

...
subtitlestream = xbmc.SubtitleStreamDetail('English')
...

◆ getLanguage()

getLanguage ( )

Function: getLanguage()


Get the language of the stream.

Returns
[string] Language 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.