How to add Listener for next , previous , rewind and forward in Exoplayer

后端 未结 4 999
别跟我提以往
别跟我提以往 2021-01-13 11:10

I am working on ExoPlayer, I want to customize the ExoPlayer and listen for the Event next, previous, rewind, forward so that when the user clicks the next button next video

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-13 11:48

     if you have not customized exoplayer
    
    
    
        if (currentPlayingVodPosition-1 == player.currentWindowIndex){
     Toast.makeText(this,"prev clicked",Toast.LENGTH_SHORT).show()
    
                        }
    if (currentPlayingVodPosition+1 == player.currentWindowIndex){
       Toast.makeText(this,"next clicked",Toast.LENGTH_SHORT).show()
    
                        }
    

提交回复
热议问题