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 krubba · Dec 12, 2013 at 11:56 PM · androidmoviestreamingassets

Handheld.PlayFullScreenMovie not working on Android since unity upgrade?

This works for me on iOS:

 Handheld.PlayFullScreenMovie ("movie.mp4", Color.black, FullScreenMovieControlMode.Hidden);

but not on Android i get this error and the player briefly opens and closes:

E/MediaPlayer(24820): pause called in

state 1 E/MediaPlayer(24820): error (-38, 0)

so i tried

 Handheld.PlayFullScreenMovie (Application.streamingAssetsPath + "/movie.mp4", Color.black, FullScreenMovieControlMode.Hidden);

and now instead get this error:

I/AwesomePlayer( 128): setDataSource_l(URL suppressed) E/ ( 128): Failed to open file 'jar:file:///data/app/com.mycompany.myapp-1.apk!/assets/movie.mp4'. (No such file or directory) E/MediaPlayer(26492): error (1, -2147483648) E/MediaPlayer(26492): pause called in state 0 E/MediaPlayer(26492): error (-38, 0)

I've unzipped the APK and confirmed that the movie.mp4 file is in fact where it's supposed to be.

The worst of it is that this used to work. When I was prototyping we had to ensure video would work, and it did, back in unity 3.5.6. So I'm wondering if something broke in the move to Unity4? Has anybody else run into this issue and solved it?

Comment
Add comment · Show 3
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 rastabbq · May 08, 2014 at 11:45 PM 0
Share

The first method (ie. just "movie.mp4") is working for me in Unity 4.3.2f1 on my Android device (Galaxy Nexus, Android 4.4.2). I tried your second method first and could not get it to work. $$anonymous$$y current problem is that I can't load any video from a subfolder, such as "/videos". This function only seems to recognize a file name without any sort of path in the name. This means I can put my videos only in the /assets/strea$$anonymous$$gassets folder, which ends up in the apk as the /assets folder.

avatar image rastabbq · May 08, 2014 at 11:54 PM 0
Share

I've also learned that Android playback can be finicky about format. You could try looking here for guidance: http://developer.android.com/guide/appendix/media-formats.html

avatar image Orfen · Mar 13, 2015 at 11:47 AM 0
Share

Did you ever manage to solve this issue? I have tried about 15 different rtsp stream urls and i always get the same error(same as you on different devices). I'm starting to think it's a Unity issue.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by krubba · Mar 13, 2015 at 08:49 PM

Sorry, it's been a while, but if I remember correctly I think it had something to with the format of the video itself, ie the encoding used. Someone else was supplying us the video and we went back and forth a bunch before we found a format that worked.

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

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

18 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

Related Questions

Android - Play movie with Handheld skips it 0 Answers

Download video and put it into StreamingAssets folder 0 Answers

PlayFullScreenMovie on Android shows black frames at start and end of video 2 Answers

Need help with Handeld.PlayFullScreenMovie for Android 1 Answer

Streaming assets android 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