-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
When starting for the first name the app, you'll see the following view
Before starting you will have to setup a port
to use and a token
for the Socket IO instance. To do this click on the Settings
button and fill in the inputs. After that just click on the Save
button.
After you have applied the settings you can return to the home view by clicking on the App
button. If you saved correctly you're settings they should be visible on the home view.
Now just click on the Start
button.
If your machine doesn't have an IP address you cannot start the Socket IO instance.
Normally the Socket IO should be started. You can verify it by entering the following command in PowerShell by replacing 3000
with yours.
Get-NetTCPConnection | where Localport -eq 3000
From now up should control your machine main & apps volume through Socket IO events.
This are the following events that can be send to the started instance.
-
play_pause
: Send an instruction to play or pause to the current focused media app -
next_track
: Send an instruction to go to the next track to the current focused media app -
prev_track
: Send an instruction to go to the previous track to the current focused media app -
change_main_volume
: Send an instruction to change the main volume level. It needs to receive a float number between 0 and 1. -
change_app_volume
: Send an instruction to change an app volume level by it's PID. It needs to receive an object with the PID of an app with the volume level, the value of the volume level should also be a float between 0 and 1.
When a clients connects to your instance he automatically receive two events.
-
sessions
: A array of object where each object contains all the audio sessions of the host machine. Within this object you can find three informations-
pid
: Process ID of the session -
name
: Display name of the session -
volume
: Current volume level of the session
-
-
main_volume_value
: The current volume level of the main volume