Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Video Stream video clip from asset bundle

Discussion in 'Audio & Video' started by Wattosan, Jun 3, 2019.

  1. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    456
    Hi,

    Would it be possible to stream in the video from the asset bundle? I am currently downloading an asset bundle from the server and saving it on disk (2-3Gb). If I've understood correctly then providing the url (local storage) to the video player means that the video is streamed in. It is not loaded to the RAM (is this the case?).

    However, if I want to use a video from the asset bundle, I firstly need to load the asset bundle. But this means loading 2-3Gb into RAM. This is not acceptable in my case. Is there a way to stream the video from the asset bundle without loading the whole asset bundle into RAM?

    Thank you!
     
  2. fatswallowBesides

    fatswallowBesides

    Joined:
    Jul 18, 2018
    Posts:
    12
  3. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    456
  4. fatswallowBesides

    fatswallowBesides

    Joined:
    Jul 18, 2018
    Posts:
    12
    from the documents, yes. In my practice I just didn't make assetbundles for my video files, for avoid deeper frustration. I just let my app downloaded video files and played it.
     
  5. fatswallowBesides

    fatswallowBesides

    Joined:
    Jul 18, 2018
    Posts:
    12
    and I also remember I read "Android does not support streaming of compressed video, so its impossible by default" somewhere, but can't remember where.