Top | ![]() |
![]() |
![]() |
![]() |
RygelPlayerControllerRygelPlayerController — This class keeps track of global states that are not dependant on the RygelMediaPlayer. |
gboolean | can-pause | Read |
char * | current-transport-actions | Read |
char * | metadata | Read / Write |
guint | n-tracks | Read / Write |
char * | next-metadata | Read / Write |
char * | next-uri | Read / Write |
char * | play-mode | Read / Write |
char * | playback-state | Read / Write |
guint | track | Read / Write |
char * | track-metadata | Read / Write |
char * | track-uri | Read / Write |
char * | uri | Read / Write |
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.
gboolean
rygel_player_controller_next (RygelPlayerController *self
);
gboolean
rygel_player_controller_previous (RygelPlayerController *self
);
void rygel_player_controller_set_single_play_uri (RygelPlayerController *self
,const gchar *uri
,const gchar *metadata
,const gchar *mime
,const gchar *features
);
void rygel_player_controller_set_playlist_uri (RygelPlayerController *self
,const gchar *uri
,const gchar *metadata
,GUPnPMediaCollection *collection
);
void rygel_player_controller_set_next_single_play_uri (RygelPlayerController *self
,const gchar *uri
,const gchar *metadata
,const gchar *mime
,const gchar *features
);
void rygel_player_controller_set_next_playlist_uri (RygelPlayerController *self
,const gchar *uri
,const gchar *metadata
,GUPnPMediaCollection *collection
);
gboolean rygel_player_controller_is_play_mode_valid (RygelPlayerController *self
,const gchar *play_mode
);
gchar * rygel_player_controller_unescape (RygelPlayerController *self
,const gchar *input
);
const gchar *
rygel_player_controller_get_playback_state
(RygelPlayerController *self
);
Get and return the current value of the "playback-state" property.
void rygel_player_controller_set_playback_state (RygelPlayerController *self
,const gchar *value
);
Set the value of the "playback-state" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "playback-state" property |
guint
rygel_player_controller_get_n_tracks (RygelPlayerController *self
);
Get and return the current value of the "n-tracks" property.
void rygel_player_controller_set_n_tracks (RygelPlayerController *self
,guint value
);
Set the value of the "n-tracks" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "n-tracks" property |
guint
rygel_player_controller_get_track (RygelPlayerController *self
);
Get and return the current value of the "track" property.
void rygel_player_controller_set_track (RygelPlayerController *self
,guint value
);
Set the value of the "track" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "track" property |
gchar *
rygel_player_controller_get_uri (RygelPlayerController *self
);
Get and return the current value of the "uri" property.
void rygel_player_controller_set_uri (RygelPlayerController *self
,const gchar *value
);
Set the value of the "uri" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "uri" property |
gchar *
rygel_player_controller_get_metadata (RygelPlayerController *self
);
Get and return the current value of the "metadata" property.
void rygel_player_controller_set_metadata (RygelPlayerController *self
,const gchar *value
);
Set the value of the "metadata" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "metadata" property |
gchar *
rygel_player_controller_get_track_uri (RygelPlayerController *self
);
Get and return the current value of the "track-uri" property.
void rygel_player_controller_set_track_uri (RygelPlayerController *self
,const gchar *value
);
Set the value of the "track-uri" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "track-uri" property |
gchar *
rygel_player_controller_get_track_metadata
(RygelPlayerController *self
);
Get and return the current value of the "track-metadata" property.
void rygel_player_controller_set_track_metadata (RygelPlayerController *self
,const gchar *value
);
Set the value of the "track-metadata" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "track-metadata" property |
gchar *
rygel_player_controller_get_next_uri (RygelPlayerController *self
);
Get and return the current value of the "next-uri" property.
void rygel_player_controller_set_next_uri (RygelPlayerController *self
,const gchar *value
);
Set the value of the "next-uri" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "next-uri" property |
gchar *
rygel_player_controller_get_next_metadata
(RygelPlayerController *self
);
Get and return the current value of the "next-metadata" property.
void rygel_player_controller_set_next_metadata (RygelPlayerController *self
,const gchar *value
);
Set the value of the "next-metadata" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "next-metadata" property |
gchar *
rygel_player_controller_get_current_transport_actions
(RygelPlayerController *self
);
Get and return the current value of the "current-transport-actions" property.
const gchar *
rygel_player_controller_get_play_mode (RygelPlayerController *self
);
Get and return the current value of the "play-mode" property.
void rygel_player_controller_set_play_mode (RygelPlayerController *self
,const gchar *value
);
Set the value of the "play-mode" property to value
.
self |
the RygelPlayerController instance to modify |
|
value |
the new value of the "play-mode" property |
gboolean
rygel_player_controller_get_can_pause (RygelPlayerController *self
);
Get and return the current value of the "can-pause" property.
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 { 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.
GTypeInterface |
the parent interface structure |
|
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
virtual method called by |
||
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 "n-tracks" |
||
setter method for the abstract property "n-tracks" |
||
getter method for the abstract property "track" |
||
setter method for the abstract property "track" |
||
getter method for the abstract property "uri" |
||
setter method for the abstract property "uri" |
||
getter method for the abstract property "metadata" |
||
setter method for the abstract property "metadata" |
||
getter method for the abstract property "track-uri" |
||
setter method for the abstract property "track-uri" |
||
getter method for the abstract property "track-metadata" |
||
setter method for the abstract property "track-metadata" |
||
getter method for the abstract property "next-uri" |
||
setter method for the abstract property "next-uri" |
||
getter method for the abstract property "next-metadata" |
||
setter method for the abstract property "next-metadata" |
||
getter method for the abstract property "current-transport-actions" |
||
getter method for the abstract property "play-mode" |
||
setter method for the abstract property "play-mode" |
||
getter method for the abstract property "can-pause" |
“can-pause”
property“can-pause” gboolean
can-pause.
Owner: RygelPlayerController
Flags: Read
Default value: FALSE
“current-transport-actions”
property “current-transport-actions” char *
current-transport-actions.
Owner: RygelPlayerController
Flags: Read
Default value: NULL
“metadata”
property “metadata” char *
metadata.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“n-tracks”
property“n-tracks” guint
n-tracks.
Owner: RygelPlayerController
Flags: Read / Write
Default value: 0
“next-metadata”
property “next-metadata” char *
next-metadata.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“next-uri”
property “next-uri” char *
next-uri.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“play-mode”
property “play-mode” char *
play-mode.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“playback-state”
property “playback-state” char *
playback-state.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“track”
property“track” guint
track.
Owner: RygelPlayerController
Flags: Read / Write
Default value: 0
“track-metadata”
property “track-metadata” char *
track-metadata.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL
“track-uri”
property “track-uri” char *
track-uri.
Owner: RygelPlayerController
Flags: Read / Write
Default value: NULL