Jump to content

Is it possible to get the volume of a client


Recommended Posts

spitefulgod
Posted

Hi all, I need to lower the volume of a client (not mute) while I play an audio file, I notice that there is SetVolume in the additional commands of a client on the HTTP api but how would I go about retrieving the current volume?  Is this exposed via the HTTP API?

Posted

You maybe able to get that info for devices like chromecast through their API , or use some sort of CoreAudio API for Windows PCs, but not through emby API, at least not that I am aware of.

spitefulgod
Posted

thanks for the info, since I don't know if the selected client will be on the machine i'll just have to mute it for now.

Posted

You couldn't guarantee that this would be accurate if we did have it because if the audio is being bitstreamed to a receiver or other device, then the app doesn't control the volume at all.

Posted

Yes it is in the sessions info, assuming each individual app is reporting it.

spitefulgod
Posted

Yes it is in the sessions info, assuming each individual app is reporting it.

 

Ahh yes when something is playing PlayState also contains the VolumeLevel property, thanks for that.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...