Playback
Object Hierarchy:
Description:
Implementation of Playback that displays media streams using GStreamer.
The Playback structure contains only private data and should not be accessed directly.
Namespace: ClutterGst
Package: clutter-gst-3.0
Content:
Properties:
- public int audio_stream { get; set; }
Index of the current audio stream.
- public List<string> audio_streams { get; }
List of audio streams available on the current media.
- public double buffer_fill { get; }
The fill level of the buffer for the current stream, as a value between 0.0 and 1.0.
- public bool can_seek { get; }
Whether the current stream is seekable.
- public double duration { get; }
The duration of the current stream, in seconds
- public bool in_seek { get; }
Whether or not the stream is being seeked.
- public double progress { get; set; }
The current progress of the playback, as a normalized value between 0.0 and 1.0.
- public SeekFlags seek_flags { get; set; }
Flags to use when seeking.
- public string subtitle_font_name { owned get; set; }
The font used to display subtitles.
- public int subtitle_track { get; set; }
Current subtitle track being displayed.
- public List<string> subtitle_tracks { get; }
List of subtitle tracks available.
- public string subtitle_uri { owned get; set; }
The location of a subtitle file, expressed as a valid URI.
- public string uri { owned get; set; }
The location of a media file, expressed as a valid URI.
- public string user_agent { owned get; set; }
The User Agent used by Playback with network protocols.
Creation methods:
- public Playback ()
Methods:
- public int get_audio_stream ()
Get the current audio stream.
- public unowned List<string> get_audio_streams ()
Get the list of audio streams of the current media.
- public int64 get_buffer_duration ()
Retrieves the buffer duration when buffering network streams.
- public double get_buffer_fill ()
Retrieves the amount of the stream that is buffered.
- public int get_buffer_size ()
Retrieves the buffer size when buffering network streams.
- public BufferingMode get_buffering_mode ()
- public double get_duration ()
Retrieves the duration of the media stream that this represents.
- public bool get_in_seek ()
Whether the player is seeking.
- public double get_position ()
Retrieves the position in the media stream that this represents.
- public double get_progress ()
Retrieves the playback progress of this.
- public SeekFlags get_seek_flags ()
Get the current value of the seek-flags property.
- public string get_subtitle_font_name ()
Retrieves the font name currently used.
- public int get_subtitle_track ()
Get the current subtitles track.
- public unowned List<string> get_subtitle_tracks ()
Get the list of subtitles tracks of the current media.
- public string get_subtitle_uri ()
Retrieves the URI of the subtitle file in use.
- public string get_uri ()
Retrieves the URI from this.
- public string get_user_agent ()
Retrieves the user agent used when streaming.
- public bool is_live_media ()
Whether the player is using a live media.
- public void set_audio_stream (int index_)
Set the audio stream to play.
- public void set_buffer_duration (int64 duration)
Sets the buffer duration to be used when buffering network streams.
- public void set_buffer_size (int size)
Sets the buffer size to be used when buffering network streams.
- public void set_buffering_mode (BufferingMode mode)
- public void set_filename (string filename)
Sets the source of this using a file path.
- public void set_progress (double progress)
Sets the playback progress of this.
- public void set_seek_flags (SeekFlags flags)
Seeking can be done with several trade-offs.
- public void set_subtitle_font_name (string font_name)
Sets the font used by the subtitle renderer.
- public void set_subtitle_track (int index_)
Set the subtitles track to play.
- public void set_subtitle_uri (string uri)
Sets the location of a subtitle file to display while playing this.
- public void set_uri (string uri)
Sets the URI of this to
uri
. - public void set_user_agent (string user_agent)
Sets the user agent to use when streaming.
Signals:
- public virtual signal bool should_buffer (Query query)
The should_buffer signal is emitted every time the base class needs to decide whether it should continue buffering in download-buffering mode.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface ClutterGst.Player