Android mediacontroller Play Pause controls not refresh properly

前端 未结 2 1986
悲哀的现实
悲哀的现实 2021-02-15 23:01

I have used MediaController in my activity its working fine but when I play video for first time then there should b pause button visible but instead there is play and when I pr

2条回答
  •  甜味超标
    2021-02-15 23:21

    As Oneworld mentioned on the other answer, I had same issue with old Samsung devices. Even though MediaController wired with VideoView properly, play button loses its sync until pause and play again with MediaController.

    This thing seems only happens on old Samsung devices(KitKat and below i guess).

    The only solution I found was play video programmically by videoview.start() before showing controller by mc.show().

提交回复
热议问题