Search Unity

Accessing or saving files natively with AssetBundle flow

Discussion in 'Asset Bundles' started by push-pop, Jul 8, 2020.

  1. push-pop

    push-pop

    Joined:
    Jun 29, 2017
    Posts:
    28
    Hi all,

    I have an audio player app (iOS/Android) that I'm currently working on which downloads a large amount (~1GB) of bundled audio files.

    Due to some changing requirements of the project, I now need to move to a native audio player solution, so that the audio can keep playing when the phone is locked. Is there any possibility to access audio files directly unpacked from an asset bundle? Or will any of the AssetBundle methods work on a separate thread so that I can pass the file or a stream off to the native audio player?

    I think I may need to do my own compression/decompression for this use case, but hoping to find a way to retrofit the Asset setup I already have.

    Thanks!