Based on the source code, this should work:
- Extend
MediaController
(for the purposes of this answer, call itRonnieMediaController
) - Override
dispatchKeyEvent()
inRonnieMediaController
- Before chaining to the superclass, check for
KeyEvent.KEYCODE_BACK
, and if that is encountered, tell your activity tofinish()
- Use
RonnieMediaController
instead ofMediaController
with yourVideoView
Personally, I’d just leave it alone, as with this change your user cannot make a RonnieMediaController
disappear on demand.