Kodi Development  20.0
for Binary and Script based Add-Ons
VideoStreamDetail

Detailed Description

Video stream details class used in combination with InfoTagVideo.

Class: xbmc.VideoStreamDetail([width, height, aspect, duration, codec, stereoMode, language])

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


v20 Python API changes:
New class added.

Example:

...
videostream = xbmc.VideoStreamDetail(1920, 1080, language='English')
...

Modules

 AudioStreamDetail
 Audio stream details class used in combination with InfoTagVideo.
 

Function Documentation

◆ VideoStreamDetail()

VideoStreamDetail (   ...)

Function: xbmc.VideoStreamDetail([width, height, aspect, duration, codec, stereoMode, language])


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

Parameters
width[opt] integer - Width of the video stream in pixel.
height[opt] integer - Height of the video stream in pixel.
aspect[opt] float - Aspect ratio of the video stream.
duration[opt] integer - Duration of the video stream in seconds.
codec[opt] string - Codec of the video stream.
stereoMode[opt] string - Stereo mode of the video stream.
language[opt] string - Language of the video stream.

v20 Python API changes:
New function added.

Example:

...
videostream = xbmc.VideoStreamDetail(1920, 1080, language='English')
...

◆ getWidth()

getWidth ( )

Function: getWidth()


Get the width of the video stream in pixel.

Returns
[integer] Width of the video stream

v20 Python API changes:
New function added.

◆ getHeight()

getHeight ( )

Function: getHeight()


Get the height of the video stream in pixel.

Returns
[integer] Height of the video stream

v20 Python API changes:
New function added.

◆ getAspect()

getAspect ( )

Function: getAspect()


Get the aspect ratio of the video stream.

Returns
[float] Aspect ratio of the video stream

v20 Python API changes:
New function added.

◆ getDuration()

getDuration ( )

Function: getDuration()


Get the duration of the video stream in seconds.

Returns
[float] Duration of the video stream in seconds

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.

◆ getStereoMode()

getStereoMode ( )

Function: getStereoMode()


Get the stereo mode of the video stream.

Returns
[string] Stereo mode of the video 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.

◆ setWidth()

setWidth (   ...)

Function: setWidth(width)


Set the width of the video stream in pixel.

Parameters
widthinteger - Width of the video stream in pixel.

v20 Python API changes:
New function added.

◆ setHeight()

setHeight (   ...)

Function: setHeight(height)


Set the height of the video stream in pixel.

Parameters
heightinteger - Height of the video stream in pixel.

v20 Python API changes:
New function added.

◆ setAspect()

setAspect (   ...)

Function: setAspect(aspect)


Set the aspect ratio of the video stream.

Parameters
aspectfloat - Aspect ratio of the video stream.

v20 Python API changes:
New function added.

◆ setDuration()

setDuration (   ...)

Function: setDuration(duration)


Set the duration of the video stream in seconds.

Parameters
durationinteger - Duration of the video stream in seconds.

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.

◆ setStereoMode()

setStereoMode (   ...)

Function: setStereoMode(stereoMode)


Set the stereo mode of the video stream.

Parameters
stereoModestring - Stereo mode of the video 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.