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 /
  • Help Room /
avatar image
1
Question by Santhiago · Aug 27, 2016 at 06:53 AM · wwwmovietexturestreamingogg

Streaming video as MovieTexture

Hi everyone, I'm trying to load a video as a MovieTexture using WWW but my script is not working. It shows this error: MoviePlayback::LoadMovieData got NULL

Here is my script, hope you guys can give me a hand with this:

 public WWW wwwData;
 public string url = "http://unity3d.com/files/docs/sample.ogg";
 public GUITexture gt;
 void Start() {
     wwwData = new WWW(url);
     gt = GetComponent<GUITexture>();
     gt.texture = wwwData.movie;
 }
 void Update() {
     MovieTexture m = gt.texture as MovieTexture;
     if (!m.isPlaying && m.isReadyToPlay)
         m.Play();

 }

Regards, Santhiago

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by ludo6577 · Aug 30, 2016 at 11:40 AM

Lots of people are experiencing the same issue.

It says here that it is fixed, but it is not... https://issuetracker.unity3d.com/issues/movietexture-fmod-error-when-trying-to-play-video-using-www-class

Comment
Add comment · Show 7 · Share
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 Santhiago · Aug 30, 2016 at 12:20 PM 1
Share

I've been trying different ways to load the $$anonymous$$ovieTexture and in every single way I tried, I got the same error. Finally I found a way to make it work, but still getting the error.

Thanks!

avatar image ludo6577 Santhiago · Aug 31, 2016 at 07:24 AM 0
Share

@San$$anonymous$$ Can you share the way you used to make it work ? I am still searching for a solution to load a movie with WWW ....

avatar image Santhiago ludo6577 · Aug 31, 2016 at 01:19 PM 2
Share

Sure @ludo6577 I used this script:

using UnityEngine; using System.Collections;

public class anotherTry : $$anonymous$$onoBehaviour {

 public string url = "http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv";
 
 IEnumerator Start () {
     var www = new WWW (url);
     var movieTexture = www.movie;
     while (!movieTexture.isReadyToPlay)
         yield return movieTexture;

     GetComponent<Renderer>().material.mainTexture = movieTexture;
     movieTexture.Play ();
 }    

}

As I said, the error still appeas, but the video works. Hope it helps.

alt text

captura.jpg (27.4 kB)
Show more comments
Show more comments
avatar image
0

Answer by WenM · Sep 19, 2016 at 07:56 AM

Hi, @Santhiago, I have met the same problem, but after i built up my program, it worked OK. But I want it work in Editor. Can you share the way you used to make it work ?

Comment
Add comment · Show 1 · Share
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 Santhiago · Sep 26, 2016 at 01:39 PM 0
Share

Hi @Wen$$anonymous$$, sorry for taking too long to answer. The method I used to make it work in the editor it's in the answers above this one. Let me know if it works.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

70 People are following this question.

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

Related Questions

Issues with video player coroutine 2 Answers

Differentiate movie and audio file on game object 1 Answer

Stream Audio from a URL? 3 Answers

Video Streaming with New Unity Video Player issue 0 Answers

MovieTexture not playing in playmode 1 Answer


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