in QuizDemo/QuizDemo/Controllers/PlayerViewController.swift [133:148]
func player(_ player: IVSPlayer, didChangeState state: IVSPlayer.State) {
liveLabel.isHidden = state != .playing
switch state {
case .buffering:
bufferIndicator.startAnimating()
break
case .playing:
bufferIndicator.stopAnimating()
showWaitingLabel()
break
default:
bufferIndicator.stopAnimating()
hideWaitingLabel()
break
}
}