AppStream.Video

g AppStream.Video AppStream.Video GObject.Object GObject.Object GObject.Object->AppStream.Video

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_codec_kind ()

get_container_kind ()

get_height ()

get_locale ()

get_url ()

get_width ()

set_codec_kind (kind)

set_container_kind (kind)

set_height (height)

set_locale (locale)

set_url (url)

set_width (width)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class AppStream.Video(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

AppStream.VideoClass

classmethod new()
Returns:

a AppStream.Video

Return type:

AppStream.Video

Creates a new AppStream.Video.

get_codec_kind()
Returns:

the AppStream.VideoCodecKind

Return type:

AppStream.VideoCodecKind

Gets the video codec, if known.

get_container_kind()
Returns:

the AppStream.VideoContainerKind

Return type:

AppStream.VideoContainerKind

Gets the video container format, if known.

get_height()
Returns:

height in pixels or 0 if unknown

Return type:

int

Gets the video height, if known.

get_locale()
Returns:

Locale string

Return type:

str

Get locale for this video.

get_url()
Returns:

a web URL

Return type:

str

Gets the full qualified URL for the video, usually pointing at a mirror or CDN server.

get_width()
Returns:

width in pixels or 0 if unknown

Return type:

int

Gets the video width, if known.

set_codec_kind(kind)
Parameters:

kind (AppStream.VideoCodecKind) – the AppStream.VideoCodecKind, e.g. AppStream.VideoCodecKind.AV1.

Sets the video codec.

set_container_kind(kind)
Parameters:

kind (AppStream.VideoContainerKind) – the AppStream.VideoContainerKind, e.g. AppStream.VideoContainerKind.MKV.

Sets the video container.

set_height(height)
Parameters:

height (int) – the height in pixels.

Sets the video height.

set_locale(locale)
Parameters:

locale (str) – the BCP47 locale string.

Sets the locale for this video.

set_url(url)
Parameters:

url (str) – the URL.

Sets the fully-qualified URL to use for the video.

set_width(width)
Parameters:

width (int) – the width in pixels.

Sets the video width.