Re: AVPlayerView just shows static QuickTime image
Re: AVPlayerView just shows static QuickTime image
- Subject: Re: AVPlayerView just shows static QuickTime image
- From: Andreas Falkenhahn <email@hidden>
- Date: Tue, 06 Sep 2016 18:39:13 +0200
Ok, I don't know why but AV Foundation seems to reject this *.mov file generally.
I tried to play it using the "AVSimplePlayer" example code obtained from here
https://developer.apple.com/library/mac/technotes/tn2300/_index.html
and it says "Asset is not playable". When trying to play it using the QuickTime
Player there is a lengthy dialog which says "Converting..." first and the video
is converted to some mysterious format until it is finally playable. God knows
why. On 10.6 the video just played straight out of the box, both with the QuickTime
Player and the OpenMovieFile() etc. APIs for Carbon.
On 06.09.2016 at 18:09 Andreas Falkenhahn wrote:
> I'm trying to get an AVPlayerView to play a *.mov file stored locally on HD
> but all I get is a static QuickTime image with control buttons and a seek
> bar. The sound plays fine but there is no video! Here is a screenshot:
> http://i63.tinypic.com/2rp8rd0.png
> How can this be?
> The class looks like this:
> @interface MyAVPlayerView : AVPlayerView
> {
> AVPlayer *player;
> }
> - (id)initWithPlayer:(AVPlayer *)thePlayer;
> @end
> @implementation MyAVPlayerView
> - (id)initWithPlayer:(AVPlayer *)thePlayer
> {
> if(!(self = [super init])) return nil;
>
> player = thePlayer;
> [self setPlayer:player];
> return self;
> }
> @end
> And then I just set it as the window's content view and call play(), like
> this:
> [win setContentView:playerView];
> [player play];
> As I said, sound is working fine, the control buttons and seek bar are working
> fine but there is no video! Why?
--
Best regards,
Andreas Falkenhahn mailto:email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden