简体   繁体   中英

How to add a custom button to AVPlayerViewController?

有没有办法在子类AVPlayerViewController中添加“跳过30分钟后退/前进”按钮,使其看起来像原生(就像播放/暂停按钮一样)?

There is actually no 'good' way of doing it. Apple keeps AVPlayerViewController simple and unfortunately unextensible.

The only thing you can do is set a custom overlaying view. But it doesn't solve the problem.

And docs say you shouldn't subclass AVPlayerViewController which means you either use it and accept as it is or write your own controller that manages an instance of AVPlayer and has everything you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM