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
2
Question by jsr2k1 · Nov 16, 2011 at 03:36 PM · videoplay

PlayMovieURL issue with iOS 5.0.1

Hello,

iPhoneUtils.PlayMovieURL works well on iOS 4.3 when I play a video from Documents folder on iPad, but it doesn't work in iOS 5.0.1 The video player is launched, but the movie is stopped and the player is then closed.

I use XCode 4.0.1 and iOS SDK 4.3

Joel

Comment
Add comment · Show 1
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 da_chinese · Nov 21, 2011 at 04:07 PM 0
Share

I am having the same problem -= Here is my calling code iPhoneUtils.Play$$anonymous$$ovieURL(Utility.GetStrea$$anonymous$$gAssetsPath() + "Video/TestVideo2.mov", Color.black, iPhone$$anonymous$$ovieControl$$anonymous$$ode.CancelOnTouch); where GetStrea$$anonymous$$gAssetsPath points to the right directory

In XCode I am getting the following error :

An instance 0xb967d50 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: 0x899d170> Context: 0x0, Property: 0x8999d90> )

I am using unity 3.4.2 / xcode 4.2 The project is setup with SD$$anonymous$$ Version : Latest Target iOS Version : 4.3 $$anonymous$$y iPad is running iOS 5.0.1

Any ideas ?

2 Replies

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

Answer by kaaJ · Nov 21, 2011 at 11:36 PM

Hey guys,

I had the same problem. Just putting "file://" before Application.persistentDataPath worked out fine. You didn't need to do this in ios 4.3.

So for example:

 iPhoneUtils.PlayMovieURL("file://"+Application.persistentDataPath + "/" + "moviename.m4v", Color.black, iPhoneMovieControlMode.Hidden);

Grtz, kaaJ

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 jsr2k1 · Dec 16, 2011 at 08:47 AM 0
Share

You're right kaaJ. THAT'S THE SOLUTION. Thanks!

$$anonymous$$

avatar image
0

Answer by neoRiley · Feb 16, 2012 at 02:46 AM

This worked for me as well. Also, verify the path being passed. I saw this same error simply because ".mp4" was omitted from the end of the path.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to play a .mp4 video file in android game 7 Answers

Pause the video in unity after playing it but it will done automatically after some time of period. 0 Answers

Changing texture when movie is paused 0 Answers

Add a video to Unity 1 Answer

How do you play video in unity? 5 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