MediaPlayer
Object Hierarchy:
Description:
public interface MediaPlayer : Object
This interface maps UPnP AVTransport:2 methods to the plugin's specific implementation.
This interface is useful only when implementing Rygel renderer plugins. Instances of this interface are retrieved from
rygel_media_renderer_plugin_get_player().
Content:
Properties:
- public abstract string[] allowed_playback_speeds { owned get; }
- public abstract int64 byte_position { get; }
- public abstract bool can_seek { get; }
- public abstract bool can_seek_bytes { get; }
- public abstract string? content_features { owned get; set; }
The contents of the contentFeatures.dlna.org HTTP header, containing
the 4th field of the protocol info for the current media URI. Or null if the header does not exist or the media does not have DLNA
information attached.
- public abstract int64 duration { get; }
- public string duration_as_str { owned get; }
- public abstract string? metadata { owned get; set; }
A DIDLLite document describing the current media URI or null. The
document is either the one received from a UPnP control point or one generated by the implementing class.
- public abstract string? mime_type { owned get; set; }
- public abstract string playback_speed { owned get; set; }
- public abstract string playback_state { owned get; set; }
- public abstract int64 position { get; }
- public string position_as_str { owned get; }
- public string protocol_info { owned get; }
- public abstract int64 size { get; }
- public abstract string? uri { owned get; set; }
- public abstract string? user_agent { owned get; set; }
- public abstract double volume { get; set; }
Methods:
- public abstract string[] get_mime_types ()
- public abstract string[] get_protocols ()
Return the protocols supported by this renderer, such as "http-get"
and "rtsp".
- protected double play_speed_to_double (string speed)
Transform a fractional playspeed (e.g. "-1/4") to double. Input values
are expected to be valid rational numbers.
- public abstract bool seek (int64 time)
Seek to a point in the current media that is this many microseconds
after the start.
- public abstract bool seek_bytes (int64 bytes)
Seek to a byte position in the current media.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref