public static Object getPlaybackInfo(Object controllerObj) { return ((MediaController)controllerObj).getPlaybackInfo(); }
int getVolume() { if (controller.getPlaybackInfo() == null) return 0; return 100 * controller.getPlaybackInfo().getCurrentVolume() / controller.getPlaybackInfo().getMaxVolume(); }