![]() |
![]() |
![]() |
librygel-renderer Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Properties |
RygelMediaPlayerRygelMediaPlayer — This interface maps UPnP AVTransport:2 methods to the plugin's specific implementation. |
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_allowed_playback_speeds (RygelMediaPlayer *self
,int *result_length1
); gchar * rygel_media_player_get_playback_speed (RygelMediaPlayer *self
); void rygel_media_player_set_playback_speed (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
); gboolean rygel_media_player_get_can_seek (RygelMediaPlayer *self
); 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; struct RygelMediaPlayerIface;
"allowed-playback-speeds" GStrv : Read "can-seek" gboolean : Read "content-features" gchar* : Read / Write "duration" gint64 : Read "metadata" gchar* : Read / Write "mime-type" gchar* : Read / Write "playback-speed" gchar* : Read / Write "playback-state" gchar* : Read / Write "position" gint64 : Read "uri" gchar* : Read / Write "volume" gdouble : Read / Write
This interface is useful only when implementing Rygel renderer plugins. Instances of this interface are retrieved from rygel_media_renderer_plugin_get_player()
.
gboolean rygel_media_player_seek (RygelMediaPlayer *self
,gint64 time
);
Seek to a point in the current media that is this many microseconds after the start.
|
the RygelMediaPlayer instance |
|
gchar ** rygel_media_player_get_protocols (RygelMediaPlayer *self
,int *result_length1
);
Return the protocols supported by this renderer, such as "http-get" and "rtsp".
|
the RygelMediaPlayer instance |
Returns : |
. [array length=result_length1] |
gchar ** rygel_media_player_get_mime_types (RygelMediaPlayer *self
,int *result_length1
);
|
the RygelMediaPlayer instance |
Returns : |
. [array length=result_length1] |
gchar * rygel_media_player_get_playback_state
(RygelMediaPlayer *self
);
Get and return the current value of the "playback-state" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "playback-state" property |
void rygel_media_player_set_playback_state (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "playback-state" property to value
.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "playback-state" property |
gchar ** rygel_media_player_get_allowed_playback_speeds (RygelMediaPlayer *self
,int *result_length1
);
Get and return the current value of the "allowed-playback-speeds" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "allowed-playback-speeds" property |
gchar * rygel_media_player_get_playback_speed
(RygelMediaPlayer *self
);
Get and return the current value of the "playback-speed" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "playback-speed" property |
void rygel_media_player_set_playback_speed (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "playback-speed" property to value
.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "playback-speed" property |
gchar * rygel_media_player_get_uri (RygelMediaPlayer *self
);
Get and return the current value of the "uri" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "uri" property |
void rygel_media_player_set_uri (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "uri" property to value
.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "uri" property |
gdouble rygel_media_player_get_volume (RygelMediaPlayer *self
);
Get and return the current value of the "volume" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "volume" property |
void rygel_media_player_set_volume (RygelMediaPlayer *self
,gdouble value
);
Set the value of the "volume" property to value
.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "volume" property |
gint64 rygel_media_player_get_duration (RygelMediaPlayer *self
);
Get and return the current value of the "duration" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "duration" property |
gchar * rygel_media_player_get_metadata (RygelMediaPlayer *self
);
Get and return the current value of the "metadata" property.
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.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "metadata" property |
void rygel_media_player_set_metadata (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "metadata" property to value
.
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.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "metadata" property |
gchar * rygel_media_player_get_mime_type (RygelMediaPlayer *self
);
Get and return the current value of the "mime-type" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "mime-type" property |
void rygel_media_player_set_mime_type (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "mime-type" property to value
.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "mime-type" property |
gboolean rygel_media_player_get_can_seek (RygelMediaPlayer *self
);
Get and return the current value of the "can-seek" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "can-seek" property |
gchar * rygel_media_player_get_content_features
(RygelMediaPlayer *self
);
Get and return the current value of the "content-features" property.
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.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "content-features" property |
void rygel_media_player_set_content_features (RygelMediaPlayer *self
,const gchar *value
);
Set the value of the "content-features" property to value
.
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.
|
the RygelMediaPlayer instance to modify |
|
the new value of the "content-features" property |
gchar * rygel_media_player_get_duration_as_str
(RygelMediaPlayer *self
);
Get and return the current value of the "duration-as-str" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "duration-as-str" property |
gint64 rygel_media_player_get_position (RygelMediaPlayer *self
);
Get and return the current value of the "position" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "position" property |
gchar * rygel_media_player_get_position_as_str
(RygelMediaPlayer *self
);
Get and return the current value of the "position-as-str" property.
|
the RygelMediaPlayer instance to query |
Returns : |
the value of the "position-as-str" property |
typedef struct _RygelMediaPlayer RygelMediaPlayer;
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()
.
struct RygelMediaPlayerIface { GTypeInterface parent_iface; gboolean (*seek) (RygelMediaPlayer* self, gint64 time); gchar** (*get_protocols) (RygelMediaPlayer* self, int* result_length1); gchar** (*get_mime_types) (RygelMediaPlayer* self, int* result_length1); gchar* (*get_playback_state) (RygelMediaPlayer* self); void (*set_playback_state) (RygelMediaPlayer* self, const gchar* value); gchar** (*get_allowed_playback_speeds) (RygelMediaPlayer* self, int* result_length1); gchar* (*get_playback_speed) (RygelMediaPlayer* self); void (*set_playback_speed) (RygelMediaPlayer* self, const gchar* value); gchar* (*get_uri) (RygelMediaPlayer* self); void (*set_uri) (RygelMediaPlayer* self, const gchar* value); gdouble (*get_volume) (RygelMediaPlayer* self); void (*set_volume) (RygelMediaPlayer* self, gdouble value); gint64 (*get_duration) (RygelMediaPlayer* self); gchar* (*get_metadata) (RygelMediaPlayer* self); void (*set_metadata) (RygelMediaPlayer* self, const gchar* value); gchar* (*get_mime_type) (RygelMediaPlayer* self); void (*set_mime_type) (RygelMediaPlayer* self, const gchar* value); gboolean (*get_can_seek) (RygelMediaPlayer* self); gchar* (*get_content_features) (RygelMediaPlayer* self); void (*set_content_features) (RygelMediaPlayer* self, const gchar* value); gint64 (*get_position) (RygelMediaPlayer* self); };
Interface for creating RygelMediaPlayer implementations.
GTypeInterface |
the parent interface structure |
virtual method called by
|
|
virtual method called by
|
|
virtual method called by
|
|
getter method for the abstract property "playback-state" | |
setter method for the abstract property "playback-state" | |
getter method for the abstract property "allowed-playback-speeds" | |
getter method for the abstract property "playback-speed" | |
setter method for the abstract property "playback-speed" | |
getter method for the abstract property "uri" | |
setter method for the abstract property "uri" | |
getter method for the abstract property "volume" | |
setter method for the abstract property "volume" | |
getter method for the abstract property "duration" | |
getter method for the abstract property "metadata" | |
setter method for the abstract property "metadata" | |
getter method for the abstract property "mime-type" | |
setter method for the abstract property "mime-type" | |
getter method for the abstract property "can-seek" | |
getter method for the abstract property "content-features" | |
setter method for the abstract property "content-features" | |
getter method for the abstract property "position" |
"allowed-playback-speeds"
property"allowed-playback-speeds" GStrv : Read
allowed-playback-speeds.
"content-features"
property"content-features" gchar* : Read / Write
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.
Default value: NULL
"metadata"
property"metadata" gchar* : Read / Write
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.
Default value: NULL
"playback-speed"
property"playback-speed" gchar* : Read / Write
playback-speed.
Default value: NULL
"playback-state"
property"playback-state" gchar* : Read / Write
playback-state.
Default value: NULL