Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Handheld.PlayFullScreenMovie on Android not work, when Video isn´t in streamingAssets

Discussion in 'Android' started by MartinG, Sep 9, 2013.

  1. MartinG

    MartinG

    Joined:
    Apr 17, 2013
    Posts:
    16
    Hi,

    Handheld.PlayFullScreenMovie works well, when the videos is in the app and loaded at runtime from the streamingAssetsFolder. But when the video is not in the app, but downloaded at runtime and saved in the internal or external storage on an android device, then Handheld.PlayFullScreenMovie seems to have no access to the video. Is is not played in Fullscreen and there is no error. Does it really only work from the streamingAssets Folder inside the APK? Is there a way, to fix or workaround that with the unity built in MoviePlayer?
    It would be really nice and helpful, when the Handheld.PlayFullScreenMovie could play videos, that are saved for example in persistantDataPath on Android.

    Greetings,

    Martin
     
  2. Sephis

    Sephis

    Joined:
    Sep 4, 2012
    Posts:
    12
    Hi,

    I've got the exact same issue, did you find an answer? Or anyone else?

    Thanks,
    Sephis
     
  3. JeremiahHP

    JeremiahHP

    Joined:
    Apr 12, 2014
    Posts:
    6
    Same problem here.. Does anyone have a solution to this.or is Handheld.PlayFullScreenMovie limited to only StreamingAssets.

    Is there even a way to at least go to the parent directory
     
  4. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    487
    In case it helps, you can play movies from a url on the web instead of the file system. That way you don't have to download it first.
     
  5. MaestroMMT

    MaestroMMT

    Joined:
    May 31, 2015
    Posts:
    26
    "Note that player will stream movie directly from the device storage, therefore you have to provide movie as a separate files and not as a usual asset. You will have to create a folder named StreamingAssets inside your Unity project (inside your Assets folder). Store your movies inside that folder. Unity will automatically copy contents of that folder into the application bundle."

    You have to use StreamingAssets or like samizzo said, an hosted url.