stream_prepared


Description:

[ Version ( since = "4.4" ) ]
public void stream_prepared (bool has_audio, bool has_video, bool seekable, int64 duration)

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

Parameters:

this

a `GtkMediaStream`

has_audio

true if the stream should advertise audio support

has_video

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