so there seem to be a lot of probems with playing videos from assetbundles on android, i tried to create a uncompressed adressables assetbundlegroup for the videos only but they would not load anyway.
now i am wondering what would be the default way of loading videos via adressables on android?
There’s an engine bug that prevents this. Unity Issue Tracker - [Android] Loading videos from AssetBundles fails unless it's uncompressed and loaded from file
depending on how this plays out, we are exploring ways to have addressables utilize some workaround.
Any updates?
looks like someone decided this bug was “as designed”. which means we need to now design a workaround. We’ve got it in the backlog. Not yet sure what our plan is, but we’ll put something out there.
Any update on this? I’ve hit a roadblock with this issue. Documentation points to use CacheInitializationSettings but it just prevents Addressables from properly initializing at all. More details here .
Hey! Are there any updates?
I keep the Android version of my video in StreamingAssets and load it with that API.
I have too many videos (about 300mb), streaming assets don’t look cool here.
The issue with CacheInitializationSettings has since been resolved. Just follow the docs, disable compression for the AssetGroup with videos and you should be ok.
But if you disable compression you might as well use StreamingAssets…
And you loose compression on other platform as well (iOS for example).
There is no point compressing the bundle with videos which are themselves already compressed by the codec. (compression ratio is almost 100%)
The benefits of using Addressable videos vs StreamingAssets:
- Reference video clips natively vs loading by some hard-coded file names
- Easily move your video bundles to content server w/o changing any code
- Use consistent way to manage assets, less extra complexity etc. (assuming you’re already using Addressables in the project)
Hi, I’m facing issues with addressable videos on Android being downloaded from a CDN server.
I have the CacheInitializationSettings compression unchecked as well as the addressable itself to be uncompressed. However I’m still facing the following error:
AndroidVideoMedia::OpenExtractor could not translate archive:/CAB-5338c39097d925b8c3995b6501e678de/CAB-5338c39097d925b8c3995b6501e678de.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed.
Versions used are:
Unity 2019.4.3f1
Addressables 1.8.5
Any other idea or solutions for this? Here are my settings for my addressables
Hi all just to update on the situation. I’ve managed to get the addressable videos working from a remote server by upgrading Addressables to version 1.16.6.
I’ve also included this code in the Awake() function of my video downloader
private void Awake()
{
Caching.ClearCache();
Caching.compressionEnabled = false;
}
you can try to use
Caching.compressionEnabled = false;
before you load these videos.