Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adaptive HLS Streaming - Flutter video_player

I am developing a new native App. I have chosen Flutter for it (over React Native). In this app, there will be a section for video streaming. These videos will have HLS streaming.

I am using video_player package in Flutter for it. I am able to play the video successfully but there is no option to change the quality (1080p, 720p etc.). How can I implement video quality selection in video_player package? Also, does video_player have adaptive bitrate streaming for HLS?

like image 273
Raghav Aggiwal Avatar asked Oct 24 '25 07:10

Raghav Aggiwal


2 Answers

You can use stack widget adding there video player and button. After pressing button you change url of video from 1080 p to 720 p.

like image 125
Islomkhuja Akhrarov Avatar answered Oct 26 '25 23:10

Islomkhuja Akhrarov


There's a package which you can use to change the quality from 1080p to 720p, here's the package's link: yoyo_player

like image 28
rounak tadvi Avatar answered Oct 26 '25 23:10

rounak tadvi