标签: ios xcode swift inheritance avplayer
我正在尝试将AVPlayer课程添加到我的view controller中,因此我可以使用addPeriodicTimeObserverForInterval方法,这样当AVAudioPlayer在播放时达到特定秒数时,我可以召集一个动作。当我尝试继承AVPlayer类时,出现错误:Multiple inheritance from classes 'UIViewController' and 'AVPlayer'
AVPlayer
view controller
addPeriodicTimeObserverForInterval
AVAudioPlayer
Multiple inheritance from classes 'UIViewController' and 'AVPlayer'
有人可以帮我解决这个问题吗?