streamPrepared

open fun streamPrepared(hasAudio: Boolean, hasVideo: Boolean, seekable: Boolean, duration: <Error class: unknown class>)

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.stream_unprepared.

Since

4.4

Parameters

hasAudio

true if the stream should advertise audio support

hasVideo

true if the stream should advertise video support

seekable

true if the stream should advertise seekability

duration

The duration of the stream or 0 if unknown