Rygel.MediaPlayer – librygel-renderer – Vala Binding Reference

Rygel.MediaPlayer – librygel-renderer Reference Manual

# 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().

Namespace: Rygel
Package: librygel-renderer

## Content:

### Properties:

- public abstract `string` playback_state { set; owned get; }
- public abstract `string`? uri { set; owned get; }
- public abstract `double` volume { set; get; }
- public abstract `int64` duration { get; }
- public abstract `string`? metadata { set; owned get; }
  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 { set; owned get; }
- public abstract `string`? content_features { set; owned get; }
  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 `string` duration_as_str { owned get; }
- public abstract `int64` position { get; }
- public `string` position_as_str { owned get; }

### Methods:

- public abstract `bool` seek (`int64` time)
  Seek to a point in the current media that is this many microseconds after the start.
- public abstract `string`[] get_protocols ()
  Return the protocols supported by this renderer, such as "http-get" and "rtsp".
- public abstract `string`[] get_mime_types ()

### Inherited Members:

All known members inherited from class GLib.Object

- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer

- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata

- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count