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

前端 未结 2 543
挽巷
挽巷 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:38

    Have a look at this project, this allows user to select resolution manually via track selection from hls stream encoded by ffmpeg.

    https://github.com/namespace7/HLS_Player

    To generate hls stream from a video,go through this link https://superuser.com/a/1302736/1108219

提交回复
热议问题