Search Issue Tracker

By Design



Found in


Issue ID




[Android] Loading videos from AssetBundles fails unless it's uncompressed and loaded from file



Steps to reproduce:
1. Open user attached project
2. Build and Run on a device
3. Observe that loading uncompressed from file works
4. Observe that loading compressed from file and cache fails as well as loading uncompressed from cache

Expected result: loading videos from AssetBundle should not fail when it's compressed and loaded from file and cache as well as uncompressed loaded from cache

Reproduced in: 2018.3.0a1, 2018.2.0b4, 2018.1.0f2, 2017.3.2f1

Reproduced with:
LGE Nexus 5, OS Version 6
Samsung Galaxy S5 Mini, OS Version 6
HTC One Mini, OS Version 4

Does not reproduce on iOS, tested with: iPhone 6, iOS 10.3

  1. Resolution Note:

    This is not currently supported by the Unity video player. We do, unfortunately, have some platform-specific limitations and this particular one is noted here (under Android notes):

    Our Android implementation currently uses Android's MediaExtractor and this library does not support flexible input handling going all the way back to the early versions of the OS that we currently support.

    In Unity 2020.x, we will add this feature, but it will only be supported on more recent versions of Android.

Comments (5)

  1. HambaliJ

    Jul 04, 2019 09:02

    Issue still persist on 2019.1.2f1.

    Android Logcat throws an error "AndroidVideoMedia::OpenExtractor could not translate archive to local file. Make sure file exist, is on disk (not in memory) and not compressed.

  2. GSN_Damir_Imaev

    Dec 14, 2018 13:21

    Another Unity feature that works on paper but doesn't work in real life.

  3. shoutrlabs

    Nov 02, 2018 14:17

    We also face this issue. IOS works like a charm, android does not. Would be great to see this fixed anytime soon.

  4. UweR7

    Oct 23, 2018 13:18

    Due to the fact that we have the same behavior but do not see the "VideoPlayer cannot play clip" error:
    What must be done to see this error?

  5. sdalex

    Aug 20, 2018 20:41

    We have try with version 2018.2.3f1 and 2018.2.4f1 to load a VideoClip from an assetbundle for Android.
    It give us the following error:
    "VideoPlayer cannot play clip"

    It work on iOS though.

    Video transparency not working from file so we will end up packaging the final Android APK with all the videos.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.