Log in or register to post comments

vuforia video not working after update to 6.0

November 3, 2016 - 5:04am #1

Hi devs,

I'm updating a project from 5.5.9 to 6.0. I've tried multiple ways now and the problem with the video still remains. They won't show as video texture. It works well in fullscreen, so the videopath is fine. I'm testing on Android.

I've tried to remove the old vuforia version like described here (https://library.vuforia.com/articles/Solution/How-To-Migrate-a-Unity-Project) and also another try was to just import the new 6.0 unitypackage.

The video area/plane is just white and the "busy" icon is shown. I know this is a little vague, but I hope you devs can point me in the right direction what I could test.

I also made a test project and setup the 5.5.9 version. Then I just imported 6.0 and that works. So this "just import" seems to work for Android in a clean/sample project. But not in my App. Also there could be problems later for iOS when just importing the new unitypackage (https://developer.vuforia.com/forum/unity-extension-technical-discussion/migrating-vuforia-5-unity-project-v6#comment-55921).

Thanks

vuforia video not working after update to 6.0

November 7, 2016 - 2:31am #3

Hi together,

just wanted to write my solution for the issue. It seems the videoplayer weren't correctly initialized because I made an own/custom "DefaultTrackableEventHandler.cs". So I handle the AR content for multiple markers myself. A script attached to each ImageTarget was hidding the AR content for that marker in the Start() function. I guess this is where the initialization of the videoplayer was interrupted and therefore it was in NOT_READY state, meaning the videos couldn't be played. I changed some parts of my script and the content isn't hidden in the Start() function.

Since it was working fine in 5.5.9 the quesion would be if the videoplayer init has changed. I had a brief look at the VideoPlaybackBehaviour.cs and saw that there were many changes from 5.5.9 to 6.0. Mainly there are some coroutines implemented, that case a "delay" in initialization. Meanwhile other scripts finish their Start function and hide the video object/script, interrupting the initialization (coroutine/s).

StartCoroutine(InitVideoPlayer());

StartCoroutine(LoadVideo());

StartCoroutine( PrepareVideo() );

Cheers

vuforia video not working after update to 6.0

November 3, 2016 - 8:46am #2

Hi devs,

here's some debug output, when starting a videotexture:

debugTextManager.AddText("VideoPlayerState A: " + videoPlaybackBehaviour.VideoPlayer.GetStatus());
videoPlaybackBehaviour.VideoPlayer.Play(false, 0.0f);
debugTextManager.AddText("VideoPlayerState B: " + videoPlaybackBehaviour.VideoPlayer.GetStatus());

It says "NOT_READY" in both cases. What can be the reason for being "not ready"? How to debug?

Thanks

Log in or register to post comments