MediaStream.prepared

Called by GtkMediaStream implementations to advertise the stream being ready to play and providing details about the stream.

Note that the arguments are hints. If the stream implementation cannot determine the correct values, it is better to err on the side of caution and return %TRUE. User interfaces will use those values to determine what controls to show.

This function may not be called again until the stream has been reset via [method@Gtk.MediaStream.unprepared].

class MediaStream
void
prepared
(,,,)

Parameters

hasAudio bool

%TRUE if the stream should advertise audio support

hasVideo bool

%TRUE if the stream should advertise video support

seekable bool

%TRUE if the stream should advertise seekability

duration long

The duration of the stream or 0 if unknown

Meta