• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AVPlayerView just shows static QuickTime image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: AVPlayerView just shows static QuickTime image
      • From: Andreas Falkenhahn <email@hidden>
  • Prev by Date: Re: How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.
  • Next by Date: Re: AVPlayerView just shows static QuickTime image
  • Previous by thread: Re: Limiting app installation
  • Next by thread: Re: AVPlayerView just shows static QuickTime image
  • Index(es):
    • Date
    • Thread