MediaStream.streamPrepared

Called by gtk.media_stream.MediaStream 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 gtk.media_stream.MediaStream.streamUnprepared.

class MediaStream
void
streamPrepared
(,,,)

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