CScreensaver.MediaPlayer¶
- Implementations:
CScreensaver.MediaPlayerProxy
,CScreensaver.MediaPlayerSkeleton
Methods¶
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
CanControl |
||
r/w |
CanGoNext |
||
r/w |
CanGoPrevious |
||
r/w |
CanPause |
||
r/w |
CanPlay |
||
r/w |
CanSeek |
||
r/w |
LoopStatus |
||
r/w |
MaximumRate |
||
r/w |
Metadata |
||
r/w |
MinimumRate |
||
r/w |
PlaybackStatus |
||
r/w |
Position |
||
r/w |
Rate |
||
r/w |
Shuffle |
||
r/w |
Volume |
Signals¶
Name |
Short Description |
---|---|
Signal emitted when a remote caller is invoking the ‘Next() [gdbus-method-org-mpris-MediaPlayer2-Player.Next]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘OpenUri() [gdbus-method-org-mpris-MediaPlayer2-Player.OpenUri]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Pause() [gdbus-method-org-mpris-MediaPlayer2-Player.Pause]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Play() [gdbus-method-org-mpris-MediaPlayer2-Player.Play]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘PlayPause() [gdbus-method-org-mpris-MediaPlayer2-Player.PlayPause]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Previous() [gdbus-method-org-mpris-MediaPlayer2-Player.Previous]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Seek() [gdbus-method-org-mpris-MediaPlayer2-Player.Seek]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘SetPosition() [gdbus-method-org-mpris-MediaPlayer2-Player.SetPosition]’ D-Bus method. |
|
Signal emitted when a remote caller is invoking the ‘Stop() [gdbus-method-org-mpris-MediaPlayer2-Player.Stop]’ D-Bus method. |
|
On the client-side, this signal is emitted whenever the D-Bus signal ‘“Seeked” [gdbus-signal-org-mpris-MediaPlayer2-Player.Seeked]’ is received. |
Fields¶
None
Class Details¶
- class CScreensaver.MediaPlayer¶
- Bases:
- Structure:
Abstract interface type for the D-Bus interface ‘org.mpris.MediaPlayer2.Player [gdbus-interface-org-mpris-MediaPlayer2-Player.top_of_page]’.
- classmethod interface_info()¶
- Returns:
A
Gio.DBusInterfaceInfo
. Do not free.- Return type:
Gets a machine-readable description of the ‘org.mpris.MediaPlayer2.Player [gdbus-interface-org-mpris-MediaPlayer2-Player.top_of_page]’ D-Bus interface.
- classmethod override_properties(klass, property_id_begin)¶
- Parameters:
klass (
GObject.ObjectClass
) – The class structure for aGObject.Object
derived class.property_id_begin (
int
) – The property id to assign to the first overridden property.
- Returns:
The last property id.
- Return type:
Overrides all
GObject.Object
properties in theCScreensaver.MediaPlayer
interface for a concrete class. The properties are overridden in the order they are defined.
- call_next(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Next() [gdbus-method-org-mpris-MediaPlayer2-Player.Next]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_next_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_next_sync
() for the synchronous, blocking version of this method.
- call_next_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_next
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_next
().
- call_next_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Next() [gdbus-method-org-mpris-MediaPlayer2-Player.Next]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_next
() for the asynchronous version of this method.
- call_open_uri(arg_Uri, cancellable, callback, *user_data)¶
- Parameters:
arg_Uri (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘OpenUri() [gdbus-method-org-mpris-MediaPlayer2-Player.OpenUri]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_open_uri_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_open_uri_sync
() for the synchronous, blocking version of this method.
- call_open_uri_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_open_uri
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_open_uri
().
- call_open_uri_sync(arg_Uri, cancellable)¶
- Parameters:
arg_Uri (
str
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘OpenUri() [gdbus-method-org-mpris-MediaPlayer2-Player.OpenUri]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_open_uri
() for the asynchronous version of this method.
- call_pause(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Pause() [gdbus-method-org-mpris-MediaPlayer2-Player.Pause]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_pause_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_pause_sync
() for the synchronous, blocking version of this method.
- call_pause_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_pause
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_pause
().
- call_pause_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Pause() [gdbus-method-org-mpris-MediaPlayer2-Player.Pause]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_pause
() for the asynchronous version of this method.
- call_play(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Play() [gdbus-method-org-mpris-MediaPlayer2-Player.Play]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_play_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_play_sync
() for the synchronous, blocking version of this method.
- call_play_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_play
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_play
().
- call_play_pause(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘PlayPause() [gdbus-method-org-mpris-MediaPlayer2-Player.PlayPause]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_play_pause_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_play_pause_sync
() for the synchronous, blocking version of this method.
- call_play_pause_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_play_pause
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_play_pause
().
- call_play_pause_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘PlayPause() [gdbus-method-org-mpris-MediaPlayer2-Player.PlayPause]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_play_pause
() for the asynchronous version of this method.
- call_play_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Play() [gdbus-method-org-mpris-MediaPlayer2-Player.Play]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_play
() for the asynchronous version of this method.
- call_previous(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Previous() [gdbus-method-org-mpris-MediaPlayer2-Player.Previous]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_previous_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_previous_sync
() for the synchronous, blocking version of this method.
- call_previous_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_previous
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_previous
().
- call_previous_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Previous() [gdbus-method-org-mpris-MediaPlayer2-Player.Previous]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_previous
() for the asynchronous version of this method.
- call_seek(arg_Offset, cancellable, callback, *user_data)¶
- Parameters:
arg_Offset (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Seek() [gdbus-method-org-mpris-MediaPlayer2-Player.Seek]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_seek_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_seek_sync
() for the synchronous, blocking version of this method.
- call_seek_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_seek
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_seek
().
- call_seek_sync(arg_Offset, cancellable)¶
- Parameters:
arg_Offset (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Seek() [gdbus-method-org-mpris-MediaPlayer2-Player.Seek]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_seek
() for the asynchronous version of this method.
- call_set_position(arg_TrackId, arg_Position, cancellable, callback, *user_data)¶
- Parameters:
arg_TrackId (
str
) – Argument to pass with the method invocation.arg_Position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘SetPosition() [gdbus-method-org-mpris-MediaPlayer2-Player.SetPosition]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_set_position_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_set_position_sync
() for the synchronous, blocking version of this method.
- call_set_position_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_set_position
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_set_position
().
- call_set_position_sync(arg_TrackId, arg_Position, cancellable)¶
- Parameters:
arg_TrackId (
str
) – Argument to pass with the method invocation.arg_Position (
int
) – Argument to pass with the method invocation.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘SetPosition() [gdbus-method-org-mpris-MediaPlayer2-Player.SetPosition]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_set_position
() for the asynchronous version of this method.
- call_stop(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously invokes the ‘Stop() [gdbus-method-org-mpris-MediaPlayer2-Player.Stop]’ D-Bus method on self. When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from (see
GLib.MainContext.push_thread_default
()). You can then callCScreensaver.MediaPlayer.call_stop_finish
() to get the result of the operation.See
CScreensaver.MediaPlayer.call_stop_sync
() for the synchronous, blocking version of this method.
- call_stop_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toCScreensaver.MediaPlayer.call_stop
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
CScreensaver.MediaPlayer.call_stop
().
- call_stop_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
- Return type:
Synchronously invokes the ‘Stop() [gdbus-method-org-mpris-MediaPlayer2-Player.Stop]’ D-Bus method on self. The calling thread is blocked until a reply is received.
See
CScreensaver.MediaPlayer.call_stop
() for the asynchronous version of this method.
- complete_next(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Next() [gdbus-method-org-mpris-MediaPlayer2-Player.Next]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_open_uri(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘OpenUri() [gdbus-method-org-mpris-MediaPlayer2-Player.OpenUri]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_pause(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Pause() [gdbus-method-org-mpris-MediaPlayer2-Player.Pause]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_play(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Play() [gdbus-method-org-mpris-MediaPlayer2-Player.Play]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_play_pause(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘PlayPause() [gdbus-method-org-mpris-MediaPlayer2-Player.PlayPause]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_previous(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Previous() [gdbus-method-org-mpris-MediaPlayer2-Player.Previous]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_seek(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Seek() [gdbus-method-org-mpris-MediaPlayer2-Player.Seek]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_set_position(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘SetPosition() [gdbus-method-org-mpris-MediaPlayer2-Player.SetPosition]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- complete_stop(invocation)¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
Helper function used in service implementations to finish handling invocations of the ‘Stop() [gdbus-method-org-mpris-MediaPlayer2-Player.Stop]’ D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
This method will free invocation, you cannot use it afterwards.
- emit_seeked(arg_Position)¶
- Parameters:
arg_Position (
int
) – Argument to pass with the signal.
Emits the ‘“Seeked” [gdbus-signal-org-mpris-MediaPlayer2-Player.Seeked]’ D-Bus signal.
- do_handle_next(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_open_uri(invocation, arg_Uri) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_Uri (
str
) –
- Return type:
- do_handle_pause(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_play(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_play_pause(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_previous(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
- do_handle_seek(invocation, arg_Offset) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_Offset (
int
) –
- Return type:
- do_handle_set_position(invocation, arg_TrackId, arg_Position) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –arg_TrackId (
str
) –arg_Position (
int
) –
- Return type:
- do_handle_stop(invocation) virtual¶
- Parameters:
invocation (
Gio.DBusMethodInvocation
) –- Return type:
Signal Details¶
- CScreensaver.MediaPlayer.signals.handle_next(media_player, invocation)¶
- Signal Name:
handle-next
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Next() [gdbus-method-org-mpris-MediaPlayer2-Player.Next]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_next
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_open_uri(media_player, invocation, arg_Uri)¶
- Signal Name:
handle-open-uri
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_Uri (
str
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘OpenUri() [gdbus-method-org-mpris-MediaPlayer2-Player.OpenUri]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_open_uri
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_pause(media_player, invocation)¶
- Signal Name:
handle-pause
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Pause() [gdbus-method-org-mpris-MediaPlayer2-Player.Pause]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_pause
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_play(media_player, invocation)¶
- Signal Name:
handle-play
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Play() [gdbus-method-org-mpris-MediaPlayer2-Player.Play]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_play
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_play_pause(media_player, invocation)¶
- Signal Name:
handle-play-pause
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘PlayPause() [gdbus-method-org-mpris-MediaPlayer2-Player.PlayPause]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_play_pause
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_previous(media_player, invocation)¶
- Signal Name:
handle-previous
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Previous() [gdbus-method-org-mpris-MediaPlayer2-Player.Previous]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_previous
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_seek(media_player, invocation, arg_Offset)¶
- Signal Name:
handle-seek
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_Offset (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Seek() [gdbus-method-org-mpris-MediaPlayer2-Player.Seek]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_seek
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_set_position(media_player, invocation, arg_TrackId, arg_Position)¶
- Signal Name:
handle-set-position
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.arg_TrackId (
str
) – Argument passed by remote caller.arg_Position (
int
) – Argument passed by remote caller.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘SetPosition() [gdbus-method-org-mpris-MediaPlayer2-Player.SetPosition]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_set_position
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.handle_stop(media_player, invocation)¶
- Signal Name:
handle-stop
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalinvocation (
Gio.DBusMethodInvocation
) – AGio.DBusMethodInvocation
.
- Returns:
Gio.DBUS_METHOD_INVOCATION_HANDLED
orTrue
if the invocation was handled,Gio.DBUS_METHOD_INVOCATION_UNHANDLED
orFalse
to let other signal handlers run.- Return type:
Signal emitted when a remote caller is invoking the ‘Stop() [gdbus-method-org-mpris-MediaPlayer2-Player.Stop]’ D-Bus method.
If a signal handler returns
True
, it means the signal handler will handle the invocation (e.g. take a reference to invocation and eventually callCScreensaver.MediaPlayer.complete_stop
() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, theGio.DBusError.UNKNOWN_METHOD
error is returned.
- CScreensaver.MediaPlayer.signals.seeked(media_player, arg_Position)¶
- Signal Name:
seeked
- Flags:
- Parameters:
media_player (
CScreensaver.MediaPlayer
) – The object which received the signalarg_Position (
int
) – Argument.
On the client-side, this signal is emitted whenever the D-Bus signal ‘“Seeked” [gdbus-signal-org-mpris-MediaPlayer2-Player.Seeked]’ is received.
On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
Property Details¶
- CScreensaver.MediaPlayer.props.can_control¶
-
Represents the D-Bus property ‘“CanControl” [gdbus-property-org-mpris-MediaPlayer2-Player.CanControl]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.can_go_next¶
-
Represents the D-Bus property ‘“CanGoNext” [gdbus-property-org-mpris-MediaPlayer2-Player.CanGoNext]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.can_go_previous¶
-
Represents the D-Bus property ‘“CanGoPrevious” [gdbus-property-org-mpris-MediaPlayer2-Player.CanGoPrevious]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.can_pause¶
-
Represents the D-Bus property ‘“CanPause” [gdbus-property-org-mpris-MediaPlayer2-Player.CanPause]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.can_play¶
-
Represents the D-Bus property ‘“CanPlay” [gdbus-property-org-mpris-MediaPlayer2-Player.CanPlay]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.can_seek¶
-
Represents the D-Bus property ‘“CanSeek” [gdbus-property-org-mpris-MediaPlayer2-Player.CanSeek]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.loop_status¶
-
Represents the D-Bus property ‘“LoopStatus” [gdbus-property-org-mpris-MediaPlayer2-Player.LoopStatus]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
- CScreensaver.MediaPlayer.props.maximum_rate¶
-
Represents the D-Bus property ‘“MaximumRate” [gdbus-property-org-mpris-MediaPlayer2-Player.MaximumRate]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.metadata¶
- Name:
metadata
- Type:
- Default Value:
- Flags:
Represents the D-Bus property ‘“Metadata” [gdbus-property-org-mpris-MediaPlayer2-Player.Metadata]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.minimum_rate¶
-
Represents the D-Bus property ‘“MinimumRate” [gdbus-property-org-mpris-MediaPlayer2-Player.MinimumRate]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.playback_status¶
-
Represents the D-Bus property ‘“PlaybackStatus” [gdbus-property-org-mpris-MediaPlayer2-Player.PlaybackStatus]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.position¶
-
Represents the D-Bus property ‘“Position” [gdbus-property-org-mpris-MediaPlayer2-Player.Position]’.
Since the D-Bus property for this
GObject.Object
property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
- CScreensaver.MediaPlayer.props.rate¶
-
Represents the D-Bus property ‘“Rate” [gdbus-property-org-mpris-MediaPlayer2-Player.Rate]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
- CScreensaver.MediaPlayer.props.shuffle¶
-
Represents the D-Bus property ‘“Shuffle” [gdbus-property-org-mpris-MediaPlayer2-Player.Shuffle]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.
- CScreensaver.MediaPlayer.props.volume¶
-
Represents the D-Bus property ‘“Volume” [gdbus-property-org-mpris-MediaPlayer2-Player.Volume]’.
Since the D-Bus property for this
GObject.Object
property is both readable and writable, it is meaningful to both read from it and write to it on both the service- and client-side.