Class MprisSource
java.lang.Object
lol.trq.orpheus.linux.MprisSource
Media players on the Linux session bus, through the MPRIS interface. One session per player.
Everything is event driven except the position, which MPRIS never announces: it is read when the track, state or rate changes and every five seconds while a player is playing. All work runs on one thread owned by this source. MPRIS gives no media kind, so a browser playing a video looks like any other player.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MprisSourcecreate()static MprisSourceUses the given variables instead of the process environment to find the bus.booleanforeign()Whether the sessions of this source belong to other applications and must pass the app rules.id()A short stable name, unique among the sources of oneOrpheus.send(ControlRequest request) Sends a command.voidstart(SourceSink newSink) Starts reporting tosink.voidstop()Stops and releases every thread, handle and process.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Source
capability, display
-
Method Details
-
create
-
create
Uses the given variables instead of the process environment to find the bus. -
id
-
foreign
-
start
Description copied from interface:SourceStarts reporting tosink. Returns quickly; failures are reported as a status, not thrown. -
stop
-
send
Description copied from interface:TransportSends a command. Never throws and never blocks; the future always completes.
-