Log in or register to post comments

Load multi-Video playback back scene cannot play video on videotexture

February 27, 2014 - 10:11am #1

I use the videoplayback sample code to create numbers of scene, all duplicate form the original demo scene (Vuforia-VideoPlaybackA, Vuforia-VideoPlaybackB). When I first load the demo scene, it works perfectly. I can single tap the video texture and play the video. But when I use Application.LoadLevel ("Vuforia-VideoPlaybackB"); to load the second scene. The second scene can only play full screen video. I check with the Xcode log it shows the error message below.  Need help

 

NullReferenceException

  at UnityEngine.MonoBehaviour.StartCoroutine (IEnumerator routine) [0x00000] in <filename unknown>:0 

  at VideoPlaybackUIEventHandler.TriggerAutoFocus () [0x00000] in <filename unknown>:0 

  at AppManager.OnSingleTapped () [0x00000] in <filename unknown>:0 

  at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()

  at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()

  at (wrapper delegate-invoke) System.Action:invoke_void__this__ ()

  at InputController.UpdateInput () [0x00000] in <filename unknown>:0 

  at SceneViewManager.Update () [0x00000] in <filename unknown>:0 

 

(Filename:  Line: -1)

 

 

Load multi-Video playback back scene cannot play video on videot

November 20, 2014 - 8:10am #6

Thank you for your tip, I have the lastest videoplayback but still have problems and is the version 3.0.10, did you solve that problem? I need help, thanks!!!

Load multi-Video playback back scene cannot play video on videot

May 29, 2014 - 7:50pm #5

Confirm: I have tested with Unity 4.2 and Vuforia 2-6-7, it works well. What is the problem with Vuforia 2-8-9?

Please help.

Load multi-Video playback back scene cannot play video on videot

May 29, 2014 - 7:32pm #4

I have the same problem. I have done as wongalan2005 said, but it does not work.

I have changed the source code of the SceneViewManager by:

public static SceneViewManager control;
void Awake ()
	{
		if (control == null)
		{
			control = this;
			DontDestroyOnLoad(gameObject);
		}
		else if (control != this)
		{
			Destroy(gameObject);
		}
	}

but it works only in odd times we visit the Vuforia Video Scene. Let me explain more detail. Given that we have 2 scenes: one NormalUnityScene, and VuforiaVideoScene. In the initial time, we load the NormalUnityScene, then we go to VuforiaVideoScene (by clicking a button, for example), the Video plays well. We go back to NormalUnityScene. After that, we go to VuforiaVideoScene, in this time, the video does not play and error occurs. However, if we go to NormalUnityScene, then back to the VuforiaVideoScene again, this time the video works well.

I do not know why this error occurs. Need more help from Vuforia Developer Team.

I am working on Unity4.3.4 and Vuforia Video Playback sample 2-8-13.

I will try with Unity 4.2 and Vuforia Video Playback sample 2-6-7, and see what happens.

Load multi-Video playback back scene cannot play video on videot

March 1, 2014 - 9:06am #3

It turns out all vuforia 2.8.9 samples project contain a SceneManager GameObject.  This SceneManager can never be destroy for the whole life cycle of the game.  Otherwise a NullReferenceException will occure. In order to preserve the SceneManager form scene to scene, i use following script to find the SceneManager and DontDestroyOnLoad to preserve it.

var notDestroy : GameObject;

function Awake () {
    if (notDestroy == null){
        notDestroy = GameObject.Find("SceneManager");
        Debug.Log("To keep the SceneManage GameObject "+notDestroy);
    }
        DontDestroyOnLoad (notDestroy);
}

 

Load multi-Video playback back scene cannot play video on videot

February 28, 2014 - 2:38am #2

Need help

Well, actually the first thing you can do to help yourself is run it through the Unity debugger so it is running on the actual device, to try and figure out why your code is crashing.

This can be quite difficult to set up in Unity, but it is worth investigating and spending the time to do so.

Search the web / Unity site for how to do this.

 

N

Log in or register to post comments