I'm currently developing an app for casting video to Chromecast. I want to control the Chromecast volume by hardware buttons. Also I want to add my app volume seekbar to the Volume panel (where we have Ring, Media and Alarm seekbars). Actually all of these points already implemented in Youtube Application (see the screenshots).
The closest question which relates to my problem has the answer, that I can use somehow VolumePanel.java
class to achieve this, but I haven't found any samples how to implement this.
Asked
Active
Viewed 213 times
7

Taras Shevchuk
- 326
- 3
- 14
-
1I don't think you can. That's a system dialog, your app doesn't put it up. So you have no hooks to change it. You may be able to detect the volume up/down buttons and launch your own dialog instead, but only if your app is in the foreground. – Gabe Sechan May 01 '18 at 21:09
-
But how is the youtube app behavior explained then? – Adam May 16 '18 at 11:54