How to make a Video Player using Native Android that have resolution switching ability like we see in YouTube?

前端 未结 2 545
挽巷
挽巷 2021-01-28 12:57

I want to use a video player eg. using ExoPlayer in android app which will support switching of resolution like we see in YouTube.

My API have video files for 480p,720p,

2条回答
  •  爱一瞬间的悲伤
    2021-01-28 13:58

    Why you don't convert your mp4 file to hls or mpd streaming format with ffmpeg so you can stream it chunk by chunk and the player will select the best resolution based on his algorithm?

提交回复
热议问题