Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jaime_FL's avatar
jaime_FL
Honored Guest
8 years ago

[GearVR] [Unity] Create apps bigger than 2 GB.

Hi,
I am trying to create an Android app that contains a big video file (2.5 GB). Unity does not allow to create automatic .obb (File--> Build Settings --> Player Settings --> Publishing Settings --> Split Application Binary) bigger than 2 GB. 
So, I am trying to include this big video using AssetBundles. However, I am having issues to include that video file (.mp4) as an asset bundle for Android. The issue is that Unity does not accept video files for mobile if they are not included in the StreamingAssets folder. And I do not want to put the file there because BuildAssetBundles does not work with that folder. 
Please, do you know how could this be done? Or any idea about how could I manage it?
Thanks!

3 Replies

Replies have been turned off for this discussion
  • jaime_FL's avatar
    jaime_FL
    Honored Guest
    Hi @imperativity, and thanks for your response. :)
    Sure, I have read that documentation.
    The issue is that Unity does not allow to create automatic OBB bigger than 2 GB. It is also written here, in the official oculus developer documentation:
    https://developer.oculus.com/blog/tech-note-expansion-file-support-for-gear-vr-beta/
    Note that Unity's “Split Application Binary” option will only generate an expansion file up to 2 GB. For larger applications, you may want to use an asset bundle.
    Because of that, I am asking about how the procedure would be using asset bundle, because I am having issues to include the video in the asset bundles. If I put the video in the Streaming Assets file, the bundle is not generated. And if I put the video in other folder, it is not recognized as a video by Unity. Please, I would like to know how could I do it.
    Many thanks again :)
  • jaime_FL's avatar
    jaime_FL
    Honored Guest


    @"jaime.FL"

    I am looking into this currently. Stay tuned.


    Oh, many thanks @imperativity
    Looking forward to hearing from you when you have some info :)
  • jaime_FL's avatar
    jaime_FL
    Honored Guest


    @"jaime.FL"
    You could just serve the raw video file as the "external data file." It doesn't have to be some Unity format, it can be whatever. You could just upload the video itself and we'll send it to the client. The name will change and you'll have to open it from the directory we put it in, but it's a simple solution.


    Thanks for your response @imperativity . I am sorry, but I have not understood your response. How would be exactly the process about "server the raw video as external data file"? And what do you mean with "upload the video itself and we'll send it to the client"? I have doubts about how to proceed with this process.
    Many thanks!