Reputation: 643
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?
Upvotes: 4
Views: 13339
Reputation: 213
For those that might come here looking for a solution. It is a pretty trivial solution using the default video_player or even yoyo player. In front of the url, just add the file format type that you desire. For example for HLS just add ".m3u8" and for dash add ".mpd" and the video will work and still be adaptive.
So your full url should be something like this:
This was using azure Media Services.
Upvotes: 1
Reputation: 29
There's a package which you can use to change the quality from 1080p to 720p, here's the package's link: yoyo_player
Upvotes: 1
Reputation: 1400
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.
Upvotes: 2