ClapperGtk.Audio¶
- Subclasses:
None
Methods¶
- Inherited:
ClapperGtk.Av (4), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (18), Gtk.Buildable (1)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (7), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class ClapperGtk.Audio(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A GTK widget for audio playback with Clapper API.
ClapperGtk.Audiois a widget meant for integrating audio playback within GTK application. It exposes [class`Clapper`.Player] through its base class [property`ClapperGtk`.Av:player] property.Other widgets (buttons, seek bar, etc.) provided by
ClapperGtklibrary, once placed anywhere inside audio container (including nesting within another widget like [class`Gtk`.Box]) will automatically controlClapperGtk.Audiothey are within. This allows to freely create custom UI best suited for specific application.- Basic usage
A typical use case is to embed audio widget as part of your app where audio playback is needed (can be even the very first child of the window). Get the [class`Clapper`.Player] belonging to the AV widget and start adding new [class`Clapper`.MediaItem] items to the [class`Clapper`.Queue] for playback. For more information please refer to the Clapper playback library documentation.
- Actions
You can use built-in actions of parent [class`ClapperGtk`.Av]. See its documentation for the list of available ones.
ClapperGtk.Audioimplementation of the [iface`Gtk`.Buildable] interface supports placing a single widget (which might then hold multiple widgets) as<child>element.``xml <object class=”ClapperGtkAudio” id=”audio”>
- <child>
- <object class=”GtkBox”>
<property name=”orientation”>horizontal</property> <child>
<object class=”ClapperGtkPreviousItemButton”>
</child> <child>
<object class=”ClapperGtkTogglePlayButton”>
</child> <child>
<object class=”ClapperGtkNextItemButton”>
</child>
</object>
</child>
</object> ``
New in version 0.10.
- classmethod new()¶
- Returns:
a new audio
Gtk.Widget.- Return type:
Creates a new
ClapperGtk.Audioinstance.Newly created audio widget will also have set “scaletempo” GStreamer element as default audio filter on its [class`Clapper`.Player] and disable video and subtitle streams. This can be changed after construction by setting corresponding player properties.
- get_child()¶
- Returns:
Gtk.Widgetset as child.- Return type:
Gtk.WidgetorNone
Get a child
Gtk.Widgetof self.
- set_child(child)¶
- Parameters:
child (
Gtk.WidgetorNone) – aGtk.Widget
Set a child
Gtk.Widgetof self.
Property Details¶
- ClapperGtk.Audio.props.child¶
- Name:
child- Type:
- Default Value:
- Flags:
The child widget of
ClapperGtkAudio.