MPRISPlayer class
Constructors
- MPRISPlayer(DBusClient client, String name)
Properties
Methods
-
canControl(
) → Future< bool> - Whether the media player may be controlled
-
canGoNext(
) → Future< bool> - Whether the client can call the next method and expect the current track to change
-
canGoPrevious(
) → Future< bool> - Whether the client can call the previous method and expect the current track to change
-
canPause(
) → Future< bool> - Whether playback can be paused using pause or toggle
-
canPlay(
) → Future< bool> - Whether playback can be started using play or toggle
-
canQuit(
) → Future< bool> - Whether the media player can be closed via quit
-
canRaise(
) → Future< bool> - Whether the media player's user interface can be brought to the front using any appropriate mechanism available
-
canSeek(
) → Future< bool> - Whether the client can control the playback position using seek or setPosition
-
canSetFullscreen(
) → Future< bool> - Whether the media player can bet set to occupy the fullscreen
-
getDesktopEntry(
) → Future< String> - The basename of an installed .desktop file which complies with the Desktop entry specification, with the ".desktop" extension stripped
-
getIdentity(
) → Future< String> - A friendly name to identify the media player to users
-
getLoopStatus(
) → Future< LoopStatus> - Get the current loop / repeat status
-
getMaximumRate(
) → Future< double> -
Get the maximum value which the
rate
can take -
getMetadata(
) → Future< Metadata> - Get the metadata of the current element
-
getMinimumRate(
) → Future< double> -
Get the minimum value which the
rate
can take -
getPosition(
) → Future< Duration> - Get the current track position
-
getRate(
) → Future< double> - Get the current playback rate
-
getShuffle(
) → Future< bool> -
Get the current shuffle mode where
false
corresponds to linear playback andtrue
corresponds to some other playback order -
getSupportedMimeTypes(
) → Future< List< String> > - The mime-types supported by the media player
-
getSupportedUriSchemes(
) → Future< List< String> > - The URI schemes supported by the media player
-
getVolume(
) → Future< double> - Get the volume level
-
hasTrackList(
) → Future< bool> - Indicates whether the media player has a track list available
-
isFullscreen(
) → Future< bool> - Whether the media player is occupying the fullscreen
-
next(
) → Future - Skips to the next track in the tracklist
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openUri(
String uri) → Future - Uri of the track to load (This is used to tell the media player which track to play)
-
pause(
) → Future - Pauses playback
-
play(
) → Future - Starts or resumes playback
-
previous(
) → Future - Skips to the previous track in the tracklist
-
quit(
) → Future - Causes the media player to stop running
-
raise(
) → Future - Brings the media player's user interface to the front using any appropriate mechanism available
-
seek(
Duration offset) → Future - Seeks forward in the current track by the specified offset
-
setFullscreen(
bool value) → Future - Set whether the media player should occupy the fullscreen
-
setLoopStatus(
LoopStatus status) → Future - Set the current loop / repeat status
-
setPosition(
String track, Duration position) → Future - Sets the current track position
-
setRate(
double value) → Future - Set the current playback rate
-
setShuffle(
bool value) → Future - Set the current shuffle mode. See getShuffle
-
setVolume(
double value) → Future - Set the volume level
-
stop(
) → Future - Stops playback
-
toggle(
) → Future - Toggles the playback
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited