Log in or register to post comments

Vuforia VideoPlaybackBehaviour mediaplayer stops on switching activity

May 2, 2014 - 12:26am #1

Hi Guys,

Vuforia VideoPlaybackBehaviour mediaplayer stops on opening activity of Gmail and FaceBook. As I come back by clossing email or fb activity player restarts from the beginning and resets its orientation.

I am not using any augemented functionality and playing it on the marker. In this simple case I would like to ask you solution to my problem. I should able to play video from its current seek possition without any hurdle.

 

Thanks in advance guys

 

Vuforia VideoPlaybackBehaviour mediaplayer stops on switching ac

May 5, 2014 - 2:35pm #2

If you are compiling for Android, then you should study Android's Activity Lifecycle diagram. Even a non-Vuforia based Android app would need to store the current playback position of a video before switching apps since the Activity is destroyed and re-created. For Unity, you will probably need to research the following events OnApplicationFocus(), OnApplicationPause(), OnApplicationQuit().

Log in or register to post comments