Class WindowsSessions
java.lang.Object
lol.trq.orpheus.windows.WindowsSessions
The media sessions of Windows 10 (1809 and later) and Windows 11: whatever shows up in the system media overlay.
One session per application.
Uses a small native library bundled in the jar. If it cannot be loaded (wrong system, blocked, missing), the
source reports itself unavailable with the reason and nothing else happens. On Java 24 and later the JVM prints a
warning about native access unless started with --enable-native-access=ALL-UNNAMED.
Windows gives a media kind, but browsers report everything as music, and private browser windows publish sessions too. Per-application volume is not part of this Windows interface, so volume and mute are unsupported.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WindowsSessionscreate()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 sink) 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