Hello @ChrisMash . I have an HLS master file that contains 4 quality types. I would like to switch between qualities smoothly while video is playing. Here how my hls file looks like (https://bv-storage.belet.me/videos/UCEkd3Rj_MSv8v6aA0h1G4fg/KEInn8yLDqM/master.m3u8)
#EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA:TYPE=AUDIO,URI="audio/audio.m3u8",GROUP-ID="audio",LANGUAGE="en",NAME="ENGLISH",AUTOSELECT=YES,CHANNELS="2"
#EXT-X-STREAM-INF:BANDWIDTH=950376,AVERAGE-BANDWIDTH=728275,CODECS="avc1.4d401e,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=29.970,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
360p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=4813550,AVERAGE-BANDWIDTH=3158741,CODECS="avc1.640020,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=59.960,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
720p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=6968449,AVERAGE-BANDWIDTH=5007913,CODECS="avc1.64002a,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=59.960,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
1080p/playlist.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1609228,AVERAGE-BANDWIDTH=1232391,CODECS="avc1.4d401f,mp4a.40.2",RESOLUTION=854x480,FRAME-RATE=29.970,VIDEO-RANGE=SDR,AUDIO="audio",CLOSED-CAPTIONS=NONE
480p/playlist.m3u8
could you guide me about how i can do it. I found an open source project about it but couldn't convert it to swiftui. Here it is:
https://github.com/IvanoBilenchi/Adaptive-Video-Player