Fullscreen the Exoplayer

前端 未结 9 1490
一向
一向 2021-02-02 16:05

I try to show the show video (.mp4) with exoplayer in RecyclerView and ViewPager. I show the video controller with custom layo

9条回答
  •  猫巷女王i
    2021-02-02 16:46

    You can apply magic-using ExoPlayerView

    playerView.setControllerVisibilityListener(new 
    PlaybackControlView.VisibilityListener() {
       @Override
       public void onVisibilityChange(int i) {
          // Using Activity
          if (getActionBar() != null)
              if (i == 0) { 
                // code for show
              } else{
                // code for hide
            }
       }
    });
    

提交回复
热议问题