我正在使用YTPlayer来播放youtube视频。视频播放正常,但当我单击完成按钮时,调用的是哪个方法?
发布于 2017-05-05 13:09:03
-(void)playerView:(nonnull YTPlayerView *)playerView didChangeToState:(YTPlayerState)state;当您单击done、pause等时,将调用此方法。
发布于 2015-05-07 09:37:41
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(closedFullScreen:) name:UIWindowDidBecomeHiddenNotification object:nil];
-(void)closedFullScreen:(NSNotification *)myNotification{
[self.playView pauseVideo];
//required stuff here like dismissing your AVFullScreenViewController
}https://stackoverflow.com/questions/28696075
复制相似问题