spitefulgod 6 Posted April 16, 2017 Share 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? Link to comment Share on other sites More sharing options...
chef 3749 Posted April 16, 2017 Share 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. Link to comment Share on other sites More sharing options...
spitefulgod 6 Posted April 16, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
ebr 14959 Posted April 16, 2017 Share 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. Link to comment Share on other sites More sharing options...
Luke 37251 Posted April 16, 2017 Share Posted April 16, 2017 Yes it is in the sessions info, assuming each individual app is reporting it. Link to comment Share on other sites More sharing options...
spitefulgod 6 Posted April 16, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
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