I have to do a Video streaming app (using a remote url) in swift. But there is no any exact video format. Sometimes it can be m3u8
sometimes mp4
etc.. but my video player should support for what ever the format comes from the back end.
Also when the app is in background, the audio should play and when the app comes foreground video should play without any time delay between the vide and the audio.
I want to know whether is it possible to achieve my objectives using AVPlayerViewController
or else what is the best player that I can use to achieve my targets. Please help me.
Thanks