Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Apr 24, 2017 at 07:39 AM by HarshadK for the following reason:

The question is answered, right answer was accepted

avatar image
5
Question by DT5 · Apr 24, 2017 at 03:02 AM · unity 5runtimevideo streamingstreamingassetsmovies

Is it possible to load a VideoClip at runtime from streaming assets

I've been working with Unity 5.6's new video player and so far it's been great! Currently I've been trying to load a video at runtime from the streaming assets folder so that the video in the build can be updated without having to create a new build. I know this was possible with the previous MovieTexture system and I had been using AV_Pro to work with non .ogg videos.

I checked out https://docs.unity3d.com/560/Documentation/ScriptReference/Video.VideoPlayer.html and while it does mention loading videos from a File://. The VideoImporter inherits from the unityEditor class so I can't use it at runtime.

Loading it as an asset bundle won't work either since I need to just support drag and drop functionality for new videos in the streamingAssets folder

Maybe I just overlooked something?

Edit: I tried using the URL but I'm just getting the error Can't play movie [] https://docs.unity3d.com/560/Documentation/ScriptReference/Video.VideoSource.Url.html

 vPlayer.url = Application.streamingAssetsPath + "/testMovie.mp4";


Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DT5 · Apr 21, 2017 at 10:46 PM 0
Share

I figured out what I was doing wrong in case anyone is ever wondering this is how you need to construct your file path.

 vPlayer.url = "file://" + Application.strea$$anonymous$$gAssetsPath + "/test$$anonymous$$ovie.mp4";
avatar image dasm30 · May 30, 2017 at 02:15 PM 0
Share

Same issue, getting same error when trying to play a video url at runtime.

avatar image Selzier · Jun 23, 2017 at 03:58 AM 0
Share

"The Android VideoPlayer cannot yet read videos from asset bundles." https://unity3d.com/unity/whats-new/unity-5.6.0

Use Easy $$anonymous$$ovie Texture in the mean time.

avatar image ha7675 Selzier · Jul 18, 2017 at 04:23 PM 0
Share

For android, remove "file://": vPlayer.url =Application.strea$$anonymous$$gAssetsPath + "/test$$anonymous$$ovie.mp4"; Hope that helps!

avatar image Amineeee · Sep 16, 2017 at 01:27 AM 0
Share

does your solution work for windows standalone?

avatar image Amineeee · Sep 16, 2017 at 04:06 PM 0
Share

it didn't actually work i still get the same error

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 5.3 UI Glitch in runtime 1 Answer

How do I switch between multiple gameobjects during run time. 1 Answer

Streaming Video Player - Android 1 Answer

how do i network sync scaling of character? 1 Answer

How do you let the player use their own videos? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges