Search code examples
androidmedia-player

MediaController.show() doesn't work?


Every time I used the MediaController.show(int timeout), it doesn't work? Does anyone know why? eg:

mMediaController.show(30000);

Solution

  • Are you defining MediaController in xml? If yes then please see the docs which says

    Functions like show() and hide() have no effect when MediaController is created in an xml layout.