Details
- 
        Type:
 Bug
            
         - 
        Status: Open
 - 
            Priority:
 Major
                
             - 
            Resolution: Unresolved
 - 
            Affects Version/s: 1.2 Final
 - 
            Fix Version/s: 1.4 Beta
 - 
            Component/s: Containers
 - 
            Labels:None
 - 
            Environment:ICEmobile, Android 2.x
 
Description
                    Video playback on Android 2.x is displayed as an overlay with the webview visible underneath.  Sometimes the video remains on screen after completion.
            
Activity
- All
 - Comments
 - History
 - Activity
 - Remote Attachments
 - Subversion
 
The following change improved full screen playback on Android 2.3. Additional code is needed to restore the View hierarchy to resume browsing when playback completes:
if (frame.getFocusedChild() instanceof VideoView) {
video = (VideoView) frame.getFocusedChild();
View mCustomViewContainer = (FrameLayout) view;
View mContentView = (View) mWebView.getParent();
VideoView mVideoView = video;
mContentView.setVisibility(View.GONE);
mCustomViewContainer.setVisibility(View.VISIBLE);
setContentView(mCustomViewContainer);
mVideoView.setOnCompletionListener(this);
mVideoView.setOnErrorListener(this);
mVideoView.start();