RygelMediaPlayer

RygelMediaPlayer — This interface maps UPnP AVTransport:2 methods to the plugin's specific implementation.

Types and Values

Description

This interface is useful only when implementing Rygel renderer plugins. Instances of this interface are retrieved from rygel_media_renderer_plugin_get_player().

Functions

Types and Values

RygelMediaPlayer

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

struct RygelMediaPlayerIface {
	GTypeInterface parent_iface;
	gboolean (*seek) (RygelMediaPlayer* self, gint64 time);
	gboolean (*seek_bytes) (RygelMediaPlayer* self, gint64 bytes);
	gchar** (*get_protocols) (RygelMediaPlayer* self, gint* result_length1);
	gchar** (*get_mime_types) (RygelMediaPlayer* self, gint* result_length1);
	gchar* (*get_playback_state) (RygelMediaPlayer* self);
	void (*set_playback_state) (RygelMediaPlayer* self, const gchar* value);
	gchar** (*get_allowed_playback_speeds) (RygelMediaPlayer* self, gint* 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);
	gint64 (*get_size) (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);
	gboolean (*get_can_seek_bytes) (RygelMediaPlayer* self);
	gchar* (*get_content_features) (RygelMediaPlayer* self);
	void (*set_content_features) (RygelMediaPlayer* self, const gchar* value);
	gint64 (*get_position) (RygelMediaPlayer* self);
	gint64 (*get_byte_position) (RygelMediaPlayer* self);
	gchar* (*get_user_agent) (RygelMediaPlayer* self);
	void (*set_user_agent) (RygelMediaPlayer* self, const gchar* value);
};

Interface for creating RygelMediaPlayer implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

seek ()

virtual method called by rygel_media_player_seek()

 

seek_bytes ()

virtual method called by rygel_media_player_seek_bytes()

 

get_protocols ()

virtual method called by rygel_media_player_get_protocols()

 

get_mime_types ()

virtual method called by rygel_media_player_get_mime_types()

 

get_playback_state ()

getter method for the abstract property "playback-state"

 

set_playback_state ()

setter method for the abstract property "playback-state"

 

get_allowed_playback_speeds ()

getter method for the abstract property "allowed-playback-speeds"

 

get_playback_speed ()

getter method for the abstract property "playback-speed"

 

set_playback_speed ()

setter method for the abstract property "playback-speed"

 

get_uri ()

getter method for the abstract property "uri"

 

set_uri ()

setter method for the abstract property "uri"

 

get_volume ()

getter method for the abstract property "volume"

 

set_volume ()

setter method for the abstract property "volume"

 

get_duration ()

getter method for the abstract property "duration"

 

get_size ()

getter method for the abstract property "size"

 

get_metadata ()

getter method for the abstract property "metadata"

 

set_metadata ()

setter method for the abstract property "metadata"

 

get_mime_type ()

getter method for the abstract property "mime-type"

 

set_mime_type ()

setter method for the abstract property "mime-type"

 

get_can_seek ()

getter method for the abstract property "can-seek"

 

get_can_seek_bytes ()

getter method for the abstract property "can-seek-bytes"

 

get_content_features ()

getter method for the abstract property "content-features"

 

set_content_features ()

setter method for the abstract property "content-features"

 

get_position ()

getter method for the abstract property "position"

 

get_byte_position ()

getter method for the abstract property "byte-position"

 

get_user_agent ()

getter method for the abstract property "user-agent"

 

set_user_agent ()

setter method for the abstract property "user-agent"