Detect tap on / off AVPlayerViewController controls

可紊 提交于 2019-12-12 11:56:50

问题


Based on the answer from this question, I have implemented an event handler that detects when an AVPlayerItem finishes 'naturally'(through AVPlayerItem.DidPlayToEndTimeNotification) and when it finishes because the user has used the seek bar to reach the end of the video (through AVPlayerItem.TimeJumpedNotification).

I would like to extend this further by checking, in the event handler for the second case, whether the user has stopped seeking - i.e their finger has been lifted from the screen) or whether they're still actively seeking.

Is there any way to detect events on the AVPlayerViewController controls so I can perform this check and react accordingly?

来源:https://stackoverflow.com/questions/35045949/detect-tap-on-off-avplayerviewcontroller-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!