spitefulgod 6 Posted April 16, 2017 Posted April 16, 2017 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?
chef 3810 Posted April 16, 2017 Posted April 16, 2017 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 6 Posted April 16, 2017 Author Posted April 16, 2017 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.
ebr 16169 Posted April 16, 2017 Posted April 16, 2017 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.
Luke 42077 Posted April 16, 2017 Posted April 16, 2017 Yes it is in the sessions info, assuming each individual app is reporting it.
spitefulgod 6 Posted April 16, 2017 Author Posted April 16, 2017 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now