Search code examples
flutterhttp-live-streaming

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?


Solution

  • 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.