Re: Problem Playing Movie File on iOS

2017-05-10 Thread Dave
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Peter Tomaselli
Nifty. I could be wrong, but also: I don't think it's necessary to manually add the AVPlayer's view as a subview of the AVPlayerViewController. Instead, assign the player to your myPlayerViewController.player property before presenting the new controller, and you should automatically get the movie

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Dave
> On 9 May 2017, at 15:41, Peter Tomaselli wrote: > > I don't believe you can present a view controller in viewDidLoad. I am away > from my computer, so I can't confirm right now, but I do not believe the > presenting view controller's view is in the view hierarchy yet during > viewDidLoad (e

Re: Problem Playing Movie File on iOS

2017-05-09 Thread Peter Tomaselli
I don't believe you can present a view controller in viewDidLoad. I am away from my computer, so I can't confirm right now, but I do not believe the presenting view controller's view is in the view hierarchy yet during viewDidLoad (exactly as the error message says). On Tue, May 9, 2017 at 8:31 AM

Problem Playing Movie File on iOS

2017-05-09 Thread Dave
Hi, I’m tying to get a movie to play in iOS. I have this in a View Controller. When I run it, it seems to play the file as I hear Audio but I get this message in the log: Warning: Attempt to present on whose view is not in the window hierarchy! I’ve search for help on this but I get hundre