Wkwebview app: changing state background->foreground causes HLS video issue

I’m developing ios app, using web technologies ( cordova/capacitor/angular ). The app is oriented for playing video, so it’s important to give good UX and smooth playing; When app change state from background to foreground, all loaded HLS video ‘freezes’ and shows no signs of life. This issue only related to HLS videos, in case of oridinary mp4 videos, everything work fine after state changes; Type of used HLS - VOD;

Example m3u8:

#EXT-X-TARGETDURATION:5
#EXT-X-VERSION:7
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MAP:URI="01_1750k_part_0.mp4"
#EXTINF:4.95000,    
#EXT-X-BITRATE:1839
01_1750k_part_1.m4s
#EXTINF:5.00000,    
#EXT-X-BITRATE:1634
01_1750k_part_2.m4s
#EXTINF:5.05000,    
#EXT-X-BITRATE:1775
01_1750k_part_3.m4s
#EXT-X-ENDLIST

Any ideas ?

Wkwebview app: changing state background->foreground causes HLS video issue
 
 
Q