Log in or register to post comments

Videoplayback video stored outside Streaming Assets

February 28, 2013 - 4:07pm #1

I have an app that is struggling with a very tight bit budget.  It is critical the filesize on the App store remain as low as possible.  For this reason, I'd like to store the videos somewhere outside the StreamingAssets directory (they will be used only on certain scenes that will be downloaded later as streaming asset bundles).  Looking through the code in VideoPlaybackBehavior and VideoPlayerHelper isn't too encouraging.  Is it not possible to define a different location for my video files?

Thanks for looking into it.

Videoplayback video stored outside Streaming Assets

February 28, 2013 - 6:16pm #2

Aha, the answer was right here on the Vuforia forums, but I'd missed it:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/ios-video-playback-non-local-file

You can edit VideoPlaybackHelper.cs to get the plug-in to look elsewhere, for me I changed it from

// Data/Raw/ ---> StreamingAssets, write only, change to Documents dir
//
// mFilename = "Data/Raw/" + filename;
mFilename = "../Documents/" + filename;

 

Hope that helps someone else.
Log in or register to post comments