Class: Gtk::MediaFile
- Inherits:
-
MediaStream
- Object
- MediaStream
- Gtk::MediaFile
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#clear ⇒ nil
Resets the media file to be empty.
-
#file ⇒ Gio::File
The file being played back or nil if not playing a file.
-
#file=(file) ⇒ Gio::File
The file being played back or nil if not playing a file.
-
#filename=(filename) ⇒ nil
Sets the `GtkMediaFile to play the given file.
-
#initialize(resource_path) ⇒ Gtk::MediaFile
constructor
Creates a new new media file for the given resource.
-
#input_stream ⇒ Gio::InputStream
The stream being played back or nil if not playing a stream.
-
#input_stream=(input_stream) ⇒ Gio::InputStream
The stream being played back or nil if not playing a stream.
-
#resource=(resource_path) ⇒ nil
Sets the `GtkMediaFile to play the given resource.
Methods inherited from MediaStream
#duration, #duration=, #ended, #ended=, #ended?, #error, #error=, #error_valist, #gerror, #has_audio, #has_audio=, #has_audio?, #has_video, #has_video=, #has_video?, #is_prepared, #is_seekable, #is_seeking, #loop, #loop=, #loop?, #muted, #muted=, #muted?, #pause, #play, #playing, #playing=, #playing?, #prepared, #prepared=, #prepared?, #realize, #seek, #seek_failed, #seek_success, #seekable=, #seekable?, #seeking=, #seeking?, #stream_ended, #stream_prepared, #stream_unprepared, #timestamp, #timestamp=, #unprepared, #unrealize, #update, #volume, #volume=
Constructor Details
#initialize(resource_path) ⇒ Gtk::MediaFile
Creates a new new media file for the given resource.
This is a utility function that converts the given resource
to a GFile and calls [ctorGtk.MediaFile.new_for_file].
Instance Method Details
#clear ⇒ nil
Resets the media file to be empty.
#file ⇒ Gio::File
The file being played back or nil if not playing a file.
#file=(file) ⇒ Gio::File
The file being played back or nil if not playing a file.
#filename=(filename) ⇒ nil
Sets the `GtkMediaFile to play the given file.
This is a utility function that converts the given filename
to a GFile and calls [methodGtk.MediaFile.set_file].
#input_stream ⇒ Gio::InputStream
The stream being played back or nil if not playing a stream.
This is nil when playing a file.
#input_stream=(input_stream) ⇒ Gio::InputStream
The stream being played back or nil if not playing a stream.
This is nil when playing a file.
#resource=(resource_path) ⇒ nil
Sets the `GtkMediaFile to play the given resource.
This is a utility function that converts the given resource_path
to a GFile and calls [methodGtk.MediaFile.set_file].