I am trying to figure out why i am getting this view:
In view did load i am doing so:
let url = URL(string: url)
let asset = AVURLAsset(url: url!)
let item = AVPlayerItem(asset: asset)
self.player = AVPlayer(playerItem: item)
self.avpController.player = self.player
self.present(self.avpController, animated: true) {
self.avpController.player?.play()
}
The only thing that make cense is that the url is no good, yet it works in the browser(not in the safari) and vlc player:
Any ideas will help
So after one day i have managed to do it. i used this excellent guide to play it with vlc player: https://hackernoon.com/swift-4-ios-app-player-live-stream-video-from-nginx-nginx-rtmp-use-vlckit-f2162134ae5c