RygelPlayerController

RygelPlayerController — This class keeps track of global states that are not dependant on the RygelMediaPlayer.

Types and Values

Description

These states are: # URI # MetaData # Number of tracks # Current track # Playback state

In case of playlists this class will also control the player. It needs to proxy the playback state to react on end of item to be able to switch to the next item.

Functions

Types and Values

RygelPlayerController

typedef struct _RygelPlayerController RygelPlayerController;

This class keeps track of global states that are not dependant on the RygelMediaPlayer.

These states are: # URI # MetaData # Number of tracks # Current track # Playback state

In case of playlists this class will also control the player. It needs to proxy the playback state to react on end of item to be able to switch to the next item.


struct RygelPlayerControllerIface

struct RygelPlayerControllerIface {
	GTypeInterface parent_iface;
	gboolean (*next) (RygelPlayerController* self);
	gboolean (*previous) (RygelPlayerController* self);
	void (*set_single_play_uri) (RygelPlayerController* self, const gchar* uri, const gchar* metadata, const gchar* mime, const gchar* features);
	void (*set_playlist_uri) (RygelPlayerController* self, const gchar* uri, const gchar* metadata, GUPnPMediaCollection* collection);
	void (*set_next_single_play_uri) (RygelPlayerController* self, const gchar* uri, const gchar* metadata, const gchar* mime, const gchar* features);
	void (*set_next_playlist_uri) (RygelPlayerController* self, const gchar* uri, const gchar* metadata, GUPnPMediaCollection* collection);
	gboolean (*is_play_mode_valid) (RygelPlayerController* self, const gchar* play_mode);
	const gchar* (*get_playback_state) (RygelPlayerController* self);
	void (*set_playback_state) (RygelPlayerController* self, const gchar* value);
	guint (*get_n_tracks) (RygelPlayerController* self);
	void (*set_n_tracks) (RygelPlayerController* self, guint value);
	guint (*get_track) (RygelPlayerController* self);
	void (*set_track) (RygelPlayerController* self, guint value);
	gchar* (*get_uri) (RygelPlayerController* self);
	void (*set_uri) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_metadata) (RygelPlayerController* self);
	void (*set_metadata) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_track_uri) (RygelPlayerController* self);
	void (*set_track_uri) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_track_metadata) (RygelPlayerController* self);
	void (*set_track_metadata) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_next_uri) (RygelPlayerController* self);
	void (*set_next_uri) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_next_metadata) (RygelPlayerController* self);
	void (*set_next_metadata) (RygelPlayerController* self, const gchar* value);
	gchar* (*get_current_transport_actions) (RygelPlayerController* self);
	const gchar* (*get_play_mode) (RygelPlayerController* self);
	void (*set_play_mode) (RygelPlayerController* self, const gchar* value);
	gboolean (*get_can_pause) (RygelPlayerController* self);
};

Interface for creating RygelPlayerController implementations.

Members

GTypeInterface parent_iface;

the parent interface structure

 

next ()

virtual method called by rygel_player_controller_next()

 

previous ()

virtual method called by rygel_player_controller_previous()

 

set_single_play_uri ()

virtual method called by rygel_player_controller_set_single_play_uri()

 

set_playlist_uri ()

virtual method called by rygel_player_controller_set_playlist_uri()

 

set_next_single_play_uri ()

virtual method called by rygel_player_controller_set_next_single_play_uri()

 

set_next_playlist_uri ()

virtual method called by rygel_player_controller_set_next_playlist_uri()

 

is_play_mode_valid ()

virtual method called by rygel_player_controller_is_play_mode_valid()

 

get_playback_state ()

getter method for the abstract property "playback-state"

 

set_playback_state ()

setter method for the abstract property "playback-state"

 

get_n_tracks ()

getter method for the abstract property "n-tracks"

 

set_n_tracks ()

setter method for the abstract property "n-tracks"

 

get_track ()

getter method for the abstract property "track"

 

set_track ()

setter method for the abstract property "track"

 

get_uri ()

getter method for the abstract property "uri"

 

set_uri ()

setter method for the abstract property "uri"

 

get_metadata ()

getter method for the abstract property "metadata"

 

set_metadata ()

setter method for the abstract property "metadata"

 

get_track_uri ()

getter method for the abstract property "track-uri"

 

set_track_uri ()

setter method for the abstract property "track-uri"

 

get_track_metadata ()

getter method for the abstract property "track-metadata"

 

set_track_metadata ()

setter method for the abstract property "track-metadata"

 

get_next_uri ()

getter method for the abstract property "next-uri"

 

set_next_uri ()

setter method for the abstract property "next-uri"

 

get_next_metadata ()

getter method for the abstract property "next-metadata"

 

set_next_metadata ()

setter method for the abstract property "next-metadata"

 

get_current_transport_actions ()

getter method for the abstract property "current-transport-actions"

 

get_play_mode ()

getter method for the abstract property "play-mode"

 

set_play_mode ()

setter method for the abstract property "play-mode"

 

get_can_pause ()

getter method for the abstract property "can-pause"