Log in or register to post comments

VideoPlayback + FullScreen

June 12, 2013 - 8:26am #1

Hi,

In the VideoPlayback example when we are viewing the video in fullscreen and then come back to the activity the rendered frame of the video is the thumbnail image loaded from the assets folder. Is it possible to show the current frame of video instead of the thumbnail?

Thanks 

VideoPlayback + FullScreen

April 5, 2015 - 2:27am #3

I'm not able to make the Videoplay back play in full screen in android, what i want is; when i move away the phone from the target the video does not stop but rather plays in fullscreen.

 

Any help is appreciated.

Regards

VideoPlayback + FullScreen

June 13, 2013 - 6:41am #2

Hi,

when you are in fullscreen mode, if you don't pause the video, but you simply touch the Back button while the video is running, the AR view will keep playing the video from where it was.

However, if you first Pause the video, and then you exit fullscreen (via Back button), then the 3D view will show the icon instead of the last frame;

the reason for this is in this code (in VideoPlayback.java, see onResume() method):

// Reload all the movies
        if (mRenderer != null)
        {
            for (int i = 0; i < NUM_TARGETS; i++)
            {
                if (!mReturningFromFullScreen)
                {
                    mRenderer.requestLoad(
                        i, mMovieName[i], mSeekPosition[i], false);
                }
                else
                {
                mRenderer.requestLoad(
                        i, mMovieName[i], mSeekPosition[i], mWasPlaying[i]);
                }
            }
        }
 
Since you have paused the video while you were in fullscreen mode, when reaching the code highlighted in bold above, the mWasPlaying[i] variable will be false;
as a consequence, the requestLoad() method will handle this as if the video must be reloaded and restarted from zero; that's why you see the icon instead of the last frame.
 
If you want to achieve what you describe, you will need to change a bit the code in mRenderer.requestLoad()...
 
Log in or register to post comments