Custom UI on exoplayer sample

后端 未结 3 1214
误落风尘
误落风尘 2020-12-08 21:47

** I really need help if you don\'t know anything don\'t give me a negative point :| if something bother you comment**

I want to write custom UI for my player in Exo

3条回答
  •  执念已碎
    2020-12-08 22:09

    Actually the code of involking play & pause methods are in class PlayerControl.

    If you don't want to use default Android media controller UI, just don't use the MediaController class, create your own UI in your layout file with custom play & pause button and bind the actions with the button's onClickListener.

    To play the video, call exoPlayer.setPlayWhenReady(true);

    And to pause: call exoPlayer.setPlayWhenReady(false);

    It's similar problem with how to create custom UI for android MediaController

提交回复
热议问题