我面临的问题是,当我尝试播放长时(小时)的远程视频时,AVPlayerViewController时长标签(已过去和剩余)将无法显示整个时长。下面的屏幕快照显示了该问题:
代码:
if let url = URL(string: urlString) {
let player = AVPlayer(url: url)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
present(playerViewController, animated: true, completion: nil)
player.play()
}