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:

  1. listen uiwindowdidbecomekeynotification
  2. check class of window becoming key against mptvoutwindow

like:

-(void)windowdidbecomekeynotification:(nsnotification*)notification {     bool tvout = [[notification description]     rangeofstring:@"mptvoutwindow"].length > 0;     ... } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -