Android TV/FireOS TV volume control

638 Views Asked by At

I want to create a TV app to control output volume. For FireOS TV to be precise.

FireTV Stick does not have any system volume control for its users. So I tried creating a normal TV application to programmatically set volume using AudioManager.setStreamVolume() but it does not works.

To my surprise there is already an App called Precise Volume Control for phones (not optimized for TV) which actually works with FireTV Stick too by sideloading. Not just that, it allows to fine control volume upto 100 levels.

How is precise volume control able to do this in FireTV Stick. Can you point me in the right direction how to achieve this?

1

There are 1 best solutions below

1
On

Transport controls are probably what you are looking for. They provide access to media playback controls. Can be found here

On TV apps, usually the UI is provided by some Leanback libraries. Which can be found here

There are Leanback Transport controls here

Usually, you would also be responsible for the media that is being played if you use the transport controls.