ICEmobile
  1. ICEmobile
  2. MOBI-757

Android 2.x full screen video playback

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major 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

        Hide
        Ted Goddard added a comment -

        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();

        Show
        Ted Goddard added a comment - 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();

          People

          • Assignee:
            Steve Maryka
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: