• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Hide MediaController Without The Three Second Delay

I am trying to find a way to hide the MediaController view without the three second delay. I have been at this for more than six hours. I have tried some ideas like:

ViewGroup mcp = (ViewGroup) mMediaController.getParent();
mcp.removeView(mMediaController);
and:

mMediaController.setVisibility(View.GONE);
They both resulted int the same thing. The MediaController got pushed into the Android bottom bar.

I have tried:

mMediaController.setVisibility(View.INVISIBLE);
That resulted in the MediaController View being black (buttonless). Though, the black bar is still there. I have tried other solutions and I did not succeed at any of those.

Can someone help?

Thanks.
 
Back
Top Bottom