Class SystemSessions
java.lang.Object
lol.trq.orpheus.system.SystemSessions
- All Implemented Interfaces:
Source
The media sessions of whatever operating system the program runs on: Windows media sessions, MPRIS on Linux,
Now Playing on macOS (experimental). Its id is always
system, so code that pins or shares by source id is
the same everywhere. On any other system it reports itself unavailable.-
Method Summary
Modifier and TypeMethodDescription<T> Tcapability(Class<T> type) The ability of the given type, or null when this source does not have it.static SystemSessionscreate()display()Rules that come with the data of this source.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.voidstart(SourceSink sink) Starts reporting tosink.voidstop()Stops and releases every thread, handle and process.
-
Method Details
-
create
-
id
-
foreign
-
display
Description copied from interface:SourceRules that come with the data of this source. -
start
Description copied from interface:SourceStarts reporting tosink. Returns quickly; failures are reported as a status, not thrown. -
stop
-
capability
Description copied from interface:SourceThe ability of the given type, or null when this source does not have it.- Specified by:
capabilityin interfaceSource
-