Is there a way to access the URL from an AVPlayer object that has been initialized with a URL, as in:
NSURL *url = [NSURL URLWithString: @\"http://www.exampl
Solution for Swift 3
func getVideoUrl() -> URL? { let asset = self.player?.currentItem?.asset if asset == nil { return nil } if let urlAsset = asset as? AVURLAsset { return urlAsset.url } return nil }