func player()

in QuizDemo/QuizDemo/Controllers/PlayerViewController.swift [154:161]


    func player(_ player: IVSPlayer, didFailWithError error: Error) {
        print("‼️ got error: \(error.localizedDescription)")
        let alert = UIAlertController(title: nil, message: error.localizedDescription, preferredStyle: .alert)
        alert.addAction(UIAlertAction(title: "Close", style: .cancel, handler: { [weak self] (_) in
            if self?.player?.state != .playing { self?.dismiss(animated: true) }
        }))
        present(alert, animated: true)
    }