OK. We are aware of an issue when running the Vuforia VideoPlayback on certain high-end iOS devices (we observed lower video rates on 64bit devices, like the iPhone6+, but cannot exclude the iPad 4 may exhibit the same issue);
could you try the following:
if you are using the Unity version of the Vuforia Videoplayback sample:
- go to the /Assets/Plugins/iOS/VuforiaMediaSource/ directory under your Unity sample project root.
- open the VuforiaMedia.xcodeproj, and in Xcode edit the VideoPlayerHelper.m source file
- find the method createFrameTimer
- at the beginning of the createFrameTimer (just before the line "frameTimer = [NSTimer schedule...... ]) add this line of code:
[[NSThread currentThread] setThreadPriority:0.5];
- once you've made and saved the changes, you can close Xcode and rebuild the libVuforiaMedia.a, by running the build.sh script provided with the VuforiaMedia project (located in the same directory); this script will build the libVuforiaMedia and will also automatically replace the original libVuforiaMedia.a library with the newly built one.
- you can then reopen your Unity VideoPlayback project, click Cmd-R to refresh all the Assets (which also include the libVuforiaMedia plugin that you have just rebuilt) and then rebuild the Unity project and run on your iPad/iPhone
Some usage notes about the 'build.sh' script:
before running the build.sh, make sure that the build.sh points to the valid Xcode path, i.e., open it in a Text Editor and adjust this line:
export DEVELOPER_DIR=/Applications/Xcode_511.app/Contents/Developer
You need to put there the actual Xcode.app that you're using in the path above.
and, if using iOS 8.0 or 8.1, also change this line:
export CONST_IOS_SDK=iphoneos7.1
to
export CONST_IOS_SDK=iphoneos8.0 (or iphoneos8.1)
Let me know if it goes any better.
What device are you running on? Is the lagging observed with the ImageTargets sample app?