ExoPlayer - play 10 files one after another

后端 未结 5 1432
天命终不由人
天命终不由人 2021-02-03 12:30

I have 10 video i need to play, once one is done, the next one starts to play.

I\'m using Google\'s ExoPlayer, I use the example in the DEMO @ GitHub. I can play 1 video

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-03 13:15

    OK, Answering my own question. on the example, google init the ExoPlayer at OnResume(). i had to re-init for every video like that:

    player = ExoPlayer.Factory.newInstance(2, 1000, 5000);
    

    if someone has a better idea, please let me know.

提交回复
热议问题