Clapper.Discoverer

g Clapper.Discoverer Clapper.Discoverer Clapper.Feature Clapper.Feature Clapper.Feature->Clapper.Discoverer GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.Object->Clapper.Feature

Subclasses:

None

Methods

Inherited:

Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_discovery_mode ()

set_discovery_mode (mode)

Virtual Methods

Inherited:

Clapper.Feature (15), Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Name

Type

Flags

Short Description

discovery-mode

Clapper.DiscovererDiscoveryMode

r/w/en

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class Clapper.Discoverer(**kwargs)
Bases:

Clapper.Feature

Abstract:

No

Structure:

Clapper.DiscovererClass

An optional Discoverer feature to be added to the player.

Clapper.Discoverer is a feature that wraps around GstPbutils.Discoverer API to automatically discover items within [class`Clapper`.Queue]. Once media is scanned, all extra information of it will be filled within media item, this includes title, duration, chapters, etc.

Please note that media items are also discovered during their playback by the player itself. Clapper.Discoverer is useful in situations where one wants to present to the user an updated media item before its playback, such as an UI that displays playback queue.

Depending on your application, you can select an optimal [enum`Clapper`.DiscovererDiscoveryMode] that best suits your needs.

Use [const`Clapper`.HAVE_DISCOVERER] macro to check if Clapper API was compiled with this feature.

classmethod new()
Returns:

a new Clapper.Discoverer instance.

Return type:

Clapper.Discoverer

Creates a new Clapper.Discoverer instance.

get_discovery_mode()
Returns:

a currently set Clapper.DiscovererDiscoveryMode.

Return type:

Clapper.DiscovererDiscoveryMode

Get the [enum`Clapper`.DiscovererDiscoveryMode] of self.

set_discovery_mode(mode)
Parameters:

mode (Clapper.DiscovererDiscoveryMode) – a Clapper.DiscovererDiscoveryMode

Set the [enum`Clapper`.DiscovererDiscoveryMode] of self.

Property Details

Clapper.Discoverer.props.discovery_mode
Name:

discovery-mode

Type:

Clapper.DiscovererDiscoveryMode

Default Value:

Clapper.DiscovererDiscoveryMode.NONCURRENT

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Discoverer discovery mode.