Class
GtkMediaStream
Description [src]
abstract class Gtk.MediaStream : GObject.Object
implements Gdk.Paintable {
/* No available fields */
}
GtkMediaStream
is the integration point for media playback inside GTK.
GTK provides an implementation of the GtkMediaStream
interface that
is called GtkMediaFile
.
Apart from application-facing API for stream playback, GtkMediaStream
has a number of APIs that are only useful for implementations and should
not be used in applications:
gtk_media_stream_prepared()
,
gtk_media_stream_unprepared()
,
gtk_media_stream_update()
,
gtk_media_stream_ended()
,
gtk_media_stream_seek_success()
,
gtk_media_stream_seek_failed()
,
gtk_media_stream_gerror()
,
gtk_media_stream_error()
,
gtk_media_stream_error_valist()
.
Instance methods
gtk_media_stream_get_error
If the stream is in an error state, returns the GError
explaining that state.
gtk_media_stream_stream_prepared
Called by GtkMediaStream
implementations to advertise the stream
being ready to play and providing details about the stream.
since: 4.4
gtk_media_stream_update
Media stream implementations should regularly call this function to update the timestamp reported by the stream.
Methods inherited from GdkPaintable (9)
gdk_paintable_compute_concrete_size
Compute a concrete size for the GdkPaintable
.
gdk_paintable_get_current_image
Gets an immutable paintable for the current contents displayed by paintable
.
gdk_paintable_get_flags
Get flags for the paintable.
gdk_paintable_get_intrinsic_aspect_ratio
Gets the preferred aspect ratio the paintable
would like to be displayed at.
gdk_paintable_get_intrinsic_height
Gets the preferred height the paintable
would like to be displayed at.
gdk_paintable_get_intrinsic_width
Gets the preferred width the paintable
would like to be displayed at.
gdk_paintable_invalidate_contents
Called by implementations of GdkPaintable
to invalidate their contents.
gdk_paintable_invalidate_size
Called by implementations of GdkPaintable
to invalidate their size.
gdk_paintable_snapshot
Snapshots the given paintable with the given width
and height
.
Properties
Gtk.MediaStream:prepared
Whether the stream has finished initializing and existence of audio and video is known.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from GdkPaintable (2)
GdkPaintable::invalidate-contents
Emitted when the contents of the paintable
change.
GdkPaintable::invalidate-size
Emitted when the intrinsic size of the paintable
changes.
Class structure
struct GtkMediaStreamClass {
GObjectClass parent_class;
gboolean (* play) (
GtkMediaStream* self
);
void (* pause) (
GtkMediaStream* self
);
void (* seek) (
GtkMediaStream* self,
gint64 timestamp
);
void (* update_audio) (
GtkMediaStream* self,
gboolean muted,
double volume
);
void (* realize) (
GtkMediaStream* self,
GdkSurface* surface
);
void (* unrealize) (
GtkMediaStream* self,
GdkSurface* surface
);
void (* _gtk_reserved1) (
void
);
void (* _gtk_reserved2) (
void
);
void (* _gtk_reserved3) (
void
);
void (* _gtk_reserved4) (
void
);
void (* _gtk_reserved5) (
void
);
void (* _gtk_reserved6) (
void
);
void (* _gtk_reserved7) (
void
);
void (* _gtk_reserved8) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
play: gboolean (* play) ( GtkMediaStream* self )
No description available.
pause: void (* pause) ( GtkMediaStream* self )
No description available.
seek: void (* seek) ( GtkMediaStream* self, gint64 timestamp )
No description available.
update_audio: void (* update_audio) ( GtkMediaStream* self, gboolean muted, double volume )
No description available.
realize: void (* realize) ( GtkMediaStream* self, GdkSurface* surface )
No description available.
unrealize: void (* unrealize) ( GtkMediaStream* self, GdkSurface* surface )
No description available.
_gtk_reserved1: void (* _gtk_reserved1) ( void )
No description available.
_gtk_reserved2: void (* _gtk_reserved2) ( void )
No description available.
_gtk_reserved3: void (* _gtk_reserved3) ( void )
No description available.
_gtk_reserved4: void (* _gtk_reserved4) ( void )
No description available.
_gtk_reserved5: void (* _gtk_reserved5) ( void )
No description available.
_gtk_reserved6: void (* _gtk_reserved6) ( void )
No description available.
_gtk_reserved7: void (* _gtk_reserved7) ( void )
No description available.
_gtk_reserved8: void (* _gtk_reserved8) ( void )
No description available.
Virtual methods
Gtk.MediaStreamClass.realize
Called by users to attach the media stream to a GdkSurface
they manage.