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')
...
◆ 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()
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()
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()
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()
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()
Function: getCodec()
Get the codec of the stream.
- Returns
- [string] Codec of the stream
- v20 Python API changes:
- New function added.
◆ 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()
Function: getLanguage()
Get the language of the stream.
- Returns
- [string] Language of the stream
- v20 Python API changes:
- New function added.
◆ setWidth()
Function: setWidth(width)
Set the width of the video stream in pixel.
- Parameters
-
width | integer - Width of the video stream in pixel. |
- v20 Python API changes:
- New function added.
◆ setHeight()
Function: setHeight(height)
Set the height of the video stream in pixel.
- Parameters
-
height | integer - Height of the video stream in pixel. |
- v20 Python API changes:
- New function added.
◆ setAspect()
Function: setAspect(aspect)
Set the aspect ratio of the video stream.
- Parameters
-
aspect | float - Aspect ratio of the video stream. |
- v20 Python API changes:
- New function added.
◆ setDuration()
Function: setDuration(duration)
Set the duration of the video stream in seconds.
- Parameters
-
duration | integer - Duration of the video stream in seconds. |
- v20 Python API changes:
- New function added.
◆ setCodec()
Function: setCodec(codec)
Set the codec of the stream.
- Parameters
-
codec | string - Codec of the stream. |
- v20 Python API changes:
- New function added.
◆ setStereoMode()
Function: setStereoMode(stereoMode)
Set the stereo mode of the video stream.
- Parameters
-
stereoMode | string - Stereo mode of the video stream. |
- v20 Python API changes:
- New function added.
◆ setLanguage()
Function: setLanguage(language)
Set the language of the stream.
- Parameters
-
language | string - Language of the stream. |
- v20 Python API changes:
- New function added.