Search Unity

Loading Videos from Asset Bundles Android?

Discussion in 'Asset Bundles' started by emongev, Feb 25, 2019.

  1. emongev

    emongev

    Joined:
    Jul 5, 2012
    Posts:
    36
    Im not sure if this is working or not. Ive found posts saying its working but with uncompressed asset bundles, but it doesnt work from cache.

    So do videos work on Android when loading from an asset bundle in some shape or form? Im currently getting the following errors while trying to load videos from an uncompressed asset on a server downloaded using the UnityWebRequestAssetBundle.GetAssetBundle function:

    AndroidVideoMedia::OpenExtractor could not translate archive:/<random string>.resource to local file. Make sure file exists, is on disk (not in memory) and not compressed.

    AndroidVideoMedia: Error opening extractor: -10004

    I wanted to confirm this to see on whether I should repurpose my build pipeline to include videos on the android build, but keep the ios build with the asset bundles.

     
  2. emongev

    emongev

    Joined:
    Jul 5, 2012
    Posts:
    36
    So I took a guess, and effectively downloading the asset bundles as files to the persistent data path worked perfectly :)
     
  3. wowemotions_company

    wowemotions_company

    Joined:
    Jan 7, 2015
    Posts:
    8