RygelMediaPlayer

## RygelMediaPlayer RygelMediaPlayer — Interface for mapping AVTransport:2 methods to the specific implementation. |

## Synopsis

    gboolean            rygel_media_player_seek             (RygelMediaPlayer *self,
                                                             gint64 time);
    gchar **            rygel_media_player_get_protocols    (RygelMediaPlayer *self,
                                                             int *result_length1);
    gchar **            rygel_media_player_get_mime_types   (RygelMediaPlayer *self,
                                                             int *result_length1);
    gchar *             rygel_media_player_get_playback_state
                                                            (RygelMediaPlayer *self);
    void                rygel_media_player_set_playback_state
                                                            (RygelMediaPlayer *self,
                                                             const gchar *value);
    gchar *             rygel_media_player_get_uri          (RygelMediaPlayer *self);
    void                rygel_media_player_set_uri          (RygelMediaPlayer *self,
                                                             const gchar *value);
    gdouble             rygel_media_player_get_volume       (RygelMediaPlayer *self);
    void                rygel_media_player_set_volume       (RygelMediaPlayer *self,
                                                             gdouble value);
    gint64              rygel_media_player_get_duration     (RygelMediaPlayer *self);
    gchar *             rygel_media_player_get_metadata     (RygelMediaPlayer *self);
    void                rygel_media_player_set_metadata     (RygelMediaPlayer *self,
                                                             const gchar *value);
    gchar *             rygel_media_player_get_mime_type    (RygelMediaPlayer *self);
    void                rygel_media_player_set_mime_type    (RygelMediaPlayer *self,
                                                             const gchar *value);
    gchar *             rygel_media_player_get_content_features
                                                            (RygelMediaPlayer *self);
    void                rygel_media_player_set_content_features
                                                            (RygelMediaPlayer *self,
                                                             const gchar *value);
    gchar *             rygel_media_player_get_duration_as_str
                                                            (RygelMediaPlayer *self);
    gint64              rygel_media_player_get_position     (RygelMediaPlayer *self);
    gchar *             rygel_media_player_get_position_as_str
                                                            (RygelMediaPlayer *self);
                        RygelMediaPlayer;

## Object Hierarchy

      GInterface
       +----RygelMediaPlayer

## Prerequisites

RygelMediaPlayer requires GObject.

## Properties

      "content-features"         gchar*                : Read / Write
      "duration"                 gint64                : Read
      "metadata"                 gchar*                : Read / Write
      "mime-type"                gchar*                : Read / Write
      "playback-state"           gchar*                : Read / Write
      "position"                 gint64                : Read
      "uri"                      gchar*                : Read / Write
      "volume"                   gdouble               : Read / Write

## Description

This class is useful only when implementing Rygel plugins.

## Details

### rygel_media_player_seek ()

    gboolean            rygel_media_player_seek             (RygelMediaPlayer *self,
                                                             gint64 time);

`self` : | the RygelMediaPlayer instance

### rygel_media_player_get_protocols ()

    gchar **            rygel_media_player_get_protocols    (RygelMediaPlayer *self,
                                                             int *result_length1);

`self` : | the RygelMediaPlayer instance
Returns : | . [array length=result_length1]

### rygel_media_player_get_mime_types ()

    gchar **            rygel_media_player_get_mime_types   (RygelMediaPlayer *self,
                                                             int *result_length1);

`self` : | the RygelMediaPlayer instance
Returns : | . [array length=result_length1]

### rygel_media_player_get_playback_state ()

    gchar *             rygel_media_player_get_playback_state
                                                            (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "playback-state" property

### rygel_media_player_set_playback_state ()

    void                rygel_media_player_set_playback_state
                                                            (RygelMediaPlayer *self,
                                                             const gchar *value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "playback-state" property

### rygel_media_player_get_uri ()

    gchar *             rygel_media_player_get_uri          (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "uri" property

### rygel_media_player_set_uri ()

    void                rygel_media_player_set_uri          (RygelMediaPlayer *self,
                                                             const gchar *value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "uri" property

### rygel_media_player_get_volume ()

    gdouble             rygel_media_player_get_volume       (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "volume" property

### rygel_media_player_set_volume ()

    void                rygel_media_player_set_volume       (RygelMediaPlayer *self,
                                                             gdouble value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "volume" property

### rygel_media_player_get_duration ()

    gint64              rygel_media_player_get_duration     (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "duration" property

### rygel_media_player_get_metadata ()

    gchar *             rygel_media_player_get_metadata     (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "metadata" property

### rygel_media_player_set_metadata ()

    void                rygel_media_player_set_metadata     (RygelMediaPlayer *self,
                                                             const gchar *value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "metadata" property

### rygel_media_player_get_mime_type ()

    gchar *             rygel_media_player_get_mime_type    (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "mime-type" property

### rygel_media_player_set_mime_type ()

    void                rygel_media_player_set_mime_type    (RygelMediaPlayer *self,
                                                             const gchar *value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "mime-type" property

### rygel_media_player_get_content_features ()

    gchar *             rygel_media_player_get_content_features
                                                            (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "content-features" property

### rygel_media_player_set_content_features ()

    void                rygel_media_player_set_content_features
                                                            (RygelMediaPlayer *self,
                                                             const gchar *value);

`self` : | the RygelMediaPlayer instance to modify
`value` : | the new value of the "content-features" property

### rygel_media_player_get_duration_as_str ()

    gchar *             rygel_media_player_get_duration_as_str
                                                            (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "duration-as-str" property

### rygel_media_player_get_position ()

    gint64              rygel_media_player_get_position     (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "position" property

### rygel_media_player_get_position_as_str ()

    gchar *             rygel_media_player_get_position_as_str
                                                            (RygelMediaPlayer *self);

`self` : | the RygelMediaPlayer instance to query
Returns : | the value of the "position-as-str" property

### RygelMediaPlayer

    typedef struct _RygelMediaPlayer RygelMediaPlayer;

Interface for mapping AVTransport:2 methods to the specific implementation.

This class is useful only when implementing Rygel plugins.

## Property Details

### The `"content-features"` property

      "content-features"         gchar*                : Read / Write

content-features.

Default value: NULL

### The `"duration"` property

      "duration"                 gint64                : Read

duration.

Default value: 0

### The `"metadata"` property

      "metadata"                 gchar*                : Read / Write

metadata.

Default value: NULL

### The `"mime-type"` property

      "mime-type"                gchar*                : Read / Write

mime-type.

Default value: NULL

### The `"playback-state"` property

      "playback-state"           gchar*                : Read / Write

playback-state.

Default value: NULL

### The `"position"` property

      "position"                 gint64                : Read

position.

Default value: 0

### The `"uri"` property

      "uri"                      gchar*                : Read / Write

uri.

Default value: NULL

### The `"volume"` property

      "volume"                   gdouble               : Read / Write

volume.

Default value: 0