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 crevelop · Jun 21, 2012 at 05:09 PM · iosplaymoviehandheld

iOS Handheld.PlayFullScreenMovie not working

Hi guys,

I've been struggling with playing a video stored locally for iOS.

Here's some details:

  • Device: iPodTouch 2g 4.2.1

  • Unity 3.5.2f2

  • Xcode 4.3

So I'm placing the video file in my Assets/StreamingAssets folder. I've tried .mov and .mp4.

All I get is the iOS player showing up for a couple of seconds with a black background then dismiss and go back to unity.

I have tried different approaches regarding the file path as follows:

 string dpath = "file://"+ Application.dataPath + "/Raw/downing.mp4";
 
 string dpath = Application.dataPath + "/Raw/downing.mp4";
 
 string dpath = "downing.mp4";

Calling at:

 Handheld.PlayFullScreenMovie(dpath);

Any thoughts? anyone please? Really need to put this together soon.

Comment
Add comment · Show 4
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 LeandroCosta · Jul 12, 2012 at 05:34 PM 0
Share

I'am having the same problem running my game in the Ipad. On android devices the video goes smoothly but on the ios the player appears for a couple of seconds then i'm back to the game. Did you have any luck with this problem?

On the Xcode i got this: 2012-07-12 14:29:41.046 beta[5402:707] An instance 0xb28fd40 of class AVPlayerItem was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NS$$anonymous$$VODeallocateBreak to stop here in the debugger. Here's the current observation info: ( Context: 0x0, Property: 0xb28d1a0> Context: 0x0, Property: 0xb3ae300>)

avatar image WereVarg · Aug 28, 2012 at 07:26 AM 0
Share

Having the same problem. Videofile (mp4) works fine in test project inside Start() and goes black and drops "..AVPlayerItem was deallocated while key value observers were still registered with it.." in the big project so the problem might be not in the path to the movie.

This path did work "file://"+Application.strea$$anonymous$$gAssetsPath+"/$$anonymous$$S_Video01.mp4"

avatar image blacksh33p · Oct 24, 2012 at 09:00 PM 0
Share

Same exact problem here. Did anyone come up with a solution?

avatar image liszto · Oct 24, 2012 at 10:12 PM 0
Share

I check that tomorrow morning at works ;) Cause we have some games with video on start.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Santa · Oct 25, 2012 at 02:22 PM

Just a thought. Do you start playing inside Update() or Start() or something? May be it affects.

Also check that standard iPod player plays your video. To be sure that codecs are OK.

My video playing fine at iPod 2G. Format is MOV. Path is simple: string dpath = "some.mov";

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
avatar image
0

Answer by Umang · Feb 14, 2015 at 10:14 AM

it will work only with streming asset folder. You have to put your video in streming asset folder and need to use Application.stremingassetpath.

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

9 People are following this question.

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

Related Questions

Handheld.PlayFullScreenMovie not working on iOS with Cloud Build 0 Answers

Help me step by step to make video play on mobile! 2 Answers

Need help with Handeld.PlayFullScreenMovie for Android 1 Answer

[iOS] Handheld.PlayFullScreenMovie pauses when headset is removed 1 Answer

Playing a Fullscreen Video turns iOS status bar on 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