Hi, You need to create your own class extending WebChromeClient and override onShowCustomView method. Your webview should use your webchromeclient.
Regards, Mariusz On Tuesday, June 12, 2012 9:25:06 PM UTC+2, dongsheng wrote: > > Hi, Brian and Mariusz > > I have the same problem: I have a WebView embedded in my app. The video > plays find inline, but when I click fullscreen, it crashes the app. > > By reading all the posts, I still do not understand how you guys fix the > problem. :( > > ds > > > On Tuesday, May 22, 2012 4:59:04 PM UTC-4, Brian wrote: >> >> I am having the following problem. >> >> The following problems only apply on Ice Cream Sandwich (probably also >> happen on honeycomb) but do not happen on gingerbread or froyo. >> >> If i implement onShowCustomView() method of a WebChromeClient to show >> fullscreen video >> for an embedded video in a WebView. >> >> I don't know how to override the back button properly to dismiss the >> video. >> >> If i dont override the back button, then presses the back button closes >> the whole activity. >> >> If i listen for the back button events, on the focused child of the >> custom view, than I can dismiss the video but, >> I have no way of detecting if the MediaController is showing, in which >> case I would prefer not to dismiss the video. >> >> >> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

