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

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

Classes

class  XBMCAddon::xbmc::SubtitleStreamDetail
 

Functions

 XBMCAddon::xbmc::SubtitleStreamDetail::SubtitleStreamDetail (...)
 

Function: xbmc.SubtitleStreamDetail([language])


Creates a single subtitle stream details class for a video item wrapped by InfoTagVideo.
 
 XBMCAddon::xbmc::SubtitleStreamDetail::getLanguage ()
 

Function: getLanguage()


Get the language of the stream.
 
 XBMCAddon::xbmc::SubtitleStreamDetail::setLanguage (...)
 

Function: setLanguage(language)


Set the language of the stream.
 

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')
...

Function Documentation

◆ getLanguage()

XBMCAddon::xbmc::SubtitleStreamDetail::getLanguage ( )

Function: getLanguage()


Get the language of the stream.

Returns
[string] Language of the stream

v20 Python API changes
New function added.

◆ setLanguage()

XBMCAddon::xbmc::SubtitleStreamDetail::setLanguage ( ...)

Function: setLanguage(language)


Set the language of the stream.

Parameters
languagestring - Language of the stream.

v20 Python API changes
New function added.

◆ SubtitleStreamDetail()

XBMCAddon::xbmc::SubtitleStreamDetail::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')
...