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
1
Question by DFiable · Dec 27, 2011 at 07:06 AM · androidvideomovieiphoneutils

IphoneUtils.PlayMovie for Android

Hi. I have Unity Android Pro 3.2. I'm on a PC. I cut and pasted this script out of Unity Script reference page and I can't seem to get a movie to play on the Android phones. What am I doing wrong? I created an empty game object in my "0" scene of the game and dropped this script on it. I created a "StreamingAssets" folder and placed it in with all of my project files. I Dropped my 264/mp4 movie into the "StreamingAssets" folder. I built the scene, then hit start. Nothing! Blank screen. The movie doesn't play. I move the Streaming Assets folder into my Standart Assets folder. Again nothing! Then I dropped the "StreamingAssets" folder along with the movie file(264 compression mp4) and put it into Standard Assets(Mobile). Nothing! Blank screen. I loaded it on my Android phone. Nothing! no movie plays. I just get a blank screen. Can someone please give me a suggestion? I must be missing something.

 function Start() {
 iPhoneUtils.PlayMovie("MyMovie44", Color.black, iPhoneMovieControlMode.CancelOnTouch);
 }


PS "CancelOnTouch" in the above code is not highlighted in my script editor. It's black. I don't know if this matters. But any suggestions you have would be appreciated.

Thanx

Comment
Add comment · Show 2
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 DFiable · Dec 27, 2011 at 07:11 AM 0
Share

Here is the error message from my editor when I hit the start button.

iPhoneUtils.Play$$anonymous$$ovie($$anonymous$$y$$anonymous$$ovie44) UnityEngine.iPhoneUtils:Play$$anonymous$$ovie(String, Color, iPhone$$anonymous$$ovieControl$$anonymous$$ode) $$anonymous$$ovieScript:Start() (at Assets/$$anonymous$$ovieScript.js:2)

avatar image DFiable · Dec 28, 2011 at 07:50 AM 0
Share

I figured it out. I don't have the extension on the file name. "$$anonymous$$y$$anonymous$$ovie44.3gp" It works fine now.

I'm surprised nobody caught that! Thanx for the comment.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Dreamora · Dec 27, 2011 at 10:48 AM

On the desktop it will not do anything. As for the movie itself: did you test if it plays on your device? On Android the movie support is such a topic thats not as pleasant as one would like it to be, your device might or might not support the codec and movie size, there is no 'base line granted support' unless you go for the worst possible.

Comment
Add comment · Show 2 · 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 DFiable · Dec 28, 2011 at 07:52 AM 0
Share

Thanks. I figured it out. I don't have the file extension on "$$anonymous$$y$$anonymous$$ovie44.3gb"

avatar image Junske · Dec 18, 2014 at 06:31 PM 0
Share

so how did you make it work? make a new scene with nothing in it except a empty gameobject and attached the script on the object?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Android video playback 2 Answers

How to check if Handheld.PlayFullScreenMovie has stopped playing 2 Answers

why cannot build movie texture on android? 4 Answers

how to play video on android 4 Answers

Movies on Android. Is it possible? 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