Clapper.SubtitleStream

g Clapper.Stream Clapper.Stream Clapper.SubtitleStream Clapper.SubtitleStream Clapper.Stream->Clapper.SubtitleStream GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Object->Clapper.Stream

Subclasses:

None

Methods

Inherited:

Clapper.Stream (2), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_lang_code ()

get_lang_name ()

Virtual Methods

Inherited:

Clapper.Stream (1), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Clapper.Stream (2), Gst.Object (2)

Name

Type

Flags

Short Description

lang-code

str

r/en

lang-name

str

r/en

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Class Details

class Clapper.SubtitleStream(**kwargs)
Bases:

Clapper.Stream

Abstract:

No

Structure:

Clapper.SubtitleStreamClass

Represents a subtitle stream within media.

get_lang_code()
Returns:

the language code of subtitle stream.

Return type:

str or None

Get an ISO-639 language code of the self.

get_lang_name()
Returns:

the language name of subtitle stream.

Return type:

str or None

Get language name of the self.

This function will try to return a translated string into current locale if possible, with a fallback to a name extracted from tags.

Property Details

Clapper.SubtitleStream.props.lang_code
Name:

lang-code

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream language code in ISO-639 format.

Clapper.SubtitleStream.props.lang_name
Name:

lang-name

Type:

str

Default Value:

None

Flags:

READABLE, EXPLICIT_NOTIFY

Stream language name.