嗨,我想添加一些自定义控件,比如UIButton在UIWebView的电影播放器上,当它从那个when视图加载时。有没有可能访问uiwebview的电影播放器或用普通的MPMoviePlayerController覆盖它。
更新
好的,您可以访问它,如下所示:先添加通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(VideoEnterFullScreen:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];然后
-(void)VideoEnterFullScreen:(NSNotification*)notification{
id moviePlayer = notification.object;
NSLog(@"");}
但问题是,我不能访问这个对象的任何属性,即UIMoviePlayerController
发布于 2014-07-16 13:20:02
您可以在这里使用开源项目:https://github.com/blizzard-op/VideoPlayerKit
您可以通过:[VideoPlayerKit initWithContainingViewController:optionalTopView:hideTopViewWithControls:];初始化它
可选属性显示在我提供的链接上。
https://stackoverflow.com/questions/24780289
复制相似问题