Hi there,
I've created an app which uses cloud recognition to augment a series of posters by downloading asset bundles from url in target metadata. My augmentations typically include a model, some text, and a video (or possibly more than 1), however I've found that videos do not work in asset bundles. This is mostly because asset bundles do not support scripts so that the video controller script only exists as a reference when the bundle is downloaded.
The possible solutions are limited because I will need a different video for each augmentation, and most likely in a unique position each time. Most importantly, though, the content will be created (as exported asset bundles) after the app is built (meaning I can't put all of the videos into my streaming assets folder because I don't know what they may all be, I'm essentially building a template).
How can I download assets and video from metadata information at runtime?
-A
Cloud Recognition and Video
You can download them to the device's file system using the WWW class and then pass the file path to an existing Video prefab instance using the VideoPlayerHelper class, which is exposed as the VideoPlayer property on the prefab instance.
Cloud Recognition and Video
Thanks DavidBeard,
Cloud Recognition and Video
Is this for iOS, Android, or both? If it's exclusively for Android, you could consider using an OBB expansion file rather than AssetBundles.
Cloud Recognition and Video
This is strictly for iOS.
Could you explain more in depth what you mean by "a template that defines the scripts to be bound to existing prefabs and properties on these scripts".
Cloud Recognition and Video
The video loading is handled according to the URL scheme. You can use the same Load method for any file.