Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by badjano · Aug 02, 2012 at 06:54 PM · ioswwwmovietexturemoviemember

'movie' is not a member of 'UnityEngine.WWW'

I am trying to play a movie for an app that is going to be on iOs, when I press play to run the app the movie plays perfectly, but when I try to build the xcode project, it gives me this error:

Assets/VideoTestJS.js(9,28): BCE0019: 'movie' is not a member of 'UnityEngine.WWW'.

The code is almost exactly as the www.movie scripting reference, but I'll post the whole thing here anyways:

var url = "http://www.unity3d.com/webplayers/Movie/sample.ogg";

function Start () { // Start download var www:WWW = new WWW(url);

 // Make sure the movie is ready to start before we start playing
 var movieTexture = www.movie;
 while (!movieTexture.isReadyToPlay)
     yield;
 
 // Initialize gui texture to be 1:1 resolution centered on screen
 guiTexture.texture = movieTexture;
 
 transform.localScale = Vector3 (0,0,0);
 transform.position = Vector3 (0.5,0.5,0);
 guiTexture.pixelInset.xMin = 0-movieTexture.width / 2;
 guiTexture.pixelInset.xMax = movieTexture.width / 2;
 guiTexture.pixelInset.yMin = 0-movieTexture.height / 2;
 guiTexture.pixelInset.yMax = movieTexture.height / 2;
 
 // Assign clip to audio source
 // Sync playback with audio
 audio.clip = movieTexture.audioClip;

 // Play both movie & sound
 movieTexture.Play();
 audio.Play();

}

My project has one scene with a camera, ang empty gameobject with audio source and guitexture components, and the above script attached to it at the end.

please help :)

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

1 Reply

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

Answer by Eric5h5 · Aug 02, 2012 at 07:04 PM

See the docs for MovieTexture...not supported on iOS, use Handheld.PlayFullScreenMovie instead.

Comment
Add comment · Show 5 · 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 badjano · Aug 02, 2012 at 07:05 PM 0
Share

I tried that, the movie never starts :(

avatar image badjano · Aug 02, 2012 at 07:09 PM 0
Share

Handheld.PlayFullScreen$$anonymous$$ovie works with remote files?

avatar image Eric5h5 · Aug 02, 2012 at 07:25 PM 0
Share

$$anonymous$$aybe...the docs say "The first parameter, path, can be a network-based URL. The function will detect that by looking for a "://" substring that follows the protocol name." I haven't tried.

avatar image badjano · Aug 02, 2012 at 07:35 PM 0
Share

nothing happens :(

Handheld.PlayFullScreen$$anonymous$$ovie( "http://www.unity3d.com/webplayers/$$anonymous$$ovie/sample.ogg" );

avatar image badjano · Aug 02, 2012 at 07:36 PM 0
Share

ignore the extra semi colon

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

8 People are following this question.

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

Related Questions

WWW.movie doesn't work 1 Answer

www.movie on GUI Texture in front of Camera 0 Answers

Problem streaming large movie 1 Answer

www.movie.other formats 1 Answer

Movie Texture - lost first few seconds and long start up times 2 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