MediaStream.streamPrepared
void streamPrepared(bool hasAudio, bool hasVideo, bool seekable, long duration)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].
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 |