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:andr...@falkenhahn.com

_______________________________________________

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.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to