AVPlayerView just shows static QuickTime image
AVPlayerView just shows static QuickTime image
- Subject: AVPlayerView just shows static QuickTime image
- From: Andreas Falkenhahn <email@hidden>
- Date: Tue, 06 Sep 2016 18:09:20 +0200
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