Log in or register to post comments

Unity Android Video Lag/Dropped Frames

November 9, 2017 - 9:35am #1

To reproduce:

  1. Go to unity, download the samples (https://www.assetstore.unity3d.com/en/#!/content/99026) and enable XR Settings to use Support Vuforia. 
  2. Drag the ImageTargets Sample scene into Hierchy, and make it the default scene. 
  3. Under ImageTarget_Fissure > Video game object, Inspector, Video Player component:
    1. Change source from VideoClip to URL
    2. Enter mp4 video url. For my testing, I have added (http://www.html5videoplayer.net/videos/toystory.mp4)
  4. Build and deploy on an Android device. I am currently using Samsung Note 5. 
  5. Observe the first few minutes when the video is being prepared. Abysmal performance. The who app is frozen, frames are dropped, for 2-5 seconds until video is fully prepared. 

This just makes it unusable. Is this really something that Unity/Vuforia told us to get excited about? Is this something that you are looking into get fixed? Because really, I cannot deploy something like this to production. I can't hardcode my videos into the app because it would make the app large and unscalable. 

Please help!

Unity Android Video Lag/Dropped Frames

November 9, 2017 - 11:58am #3

Thanks for looking into it. Daaaamn!. I was so excited now I am bummed. I am going to see i there is a way to actually use the Android sample and inject the video contents into the Unity GLContext. 

Unity Android Video Lag/Dropped Frames

November 9, 2017 - 11:48am #2

Hello biztatig,

I have been able to reproduce this with that video clip in both a project with Vuforia and without Vuforia. I did a Google search on the issue and it appears other people using this Unity component are also facing the issue so it might be an issue with the component directly. You might be able to find more answers to the issue on the Unity forums (https://forum.unity.com/).

A potential work around would be to download the video in the background before needing to play it and then deleting the local copy after you have shown the video.

Thanks,

-Vuforia Support

Log in or register to post comments