Intercept control of UIWebView video on external screen -
i'm adding external display capability ipad , having trouble uiwebview based video controls.
whenever uiwebview based video played, external screen automatically taken on display video fullscreen. unfortunately, have no way close video , return external screen previous webview. fullscreen video on external screen appears cleared once webview content unloaded.
when uiwebview video played , fullscreen video controller created, controller exist? there way detect or otherwise manage it? how can manually force dismissal of controller?
see post: how receive nsnotifications uiwebview embedded youtube video playback
otherwise, have used workaround level of success:
- listen uiwindowdidbecomekeynotification
- check class of window becoming key against mptvoutwindow
like:
-(void)windowdidbecomekeynotification:(nsnotification*)notification { bool tvout = [[notification description] rangeofstring:@"mptvoutwindow"].length > 0; ... }
Comments
Post a Comment