Package: gtk

Accessor gtk:media-stream-error

Lambda List

gtk:media-stream-error (object)

Syntax

(gtk:media-stream-error object) => error

Arguments

object -- a gtk:media-stream object
error -- nil if not in an error state or the GError of the stream

Details

Accessor of the error slot of the gtk:media-stream class. If the stream is in an error state, the gtk:media-stream-error function returns the GError explaining that state. Any type of error can be reported here depending on the implementation of the media stream.

A media stream in an error cannot be operated on, calls like the gtk:media-stream-play or gtk:media-stream-seek functions will not have any effect.

The gtk:media-stream object itself does not provide a way to unset an error, but implementations may provide options. For example, a gtk:media-file object will unset errors when a new source is set, for example, with the gtk:media-file-set-file function.
 

See also

#2023-5-2