title: How to get video frame of the AVPlayer?
body: <p>I have PlayerView class for displaying AVPlayer's playback. Code from <a href="https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/02_Playback.html#//apple_ref/doc/uid/TP40010188-CH3-SW1" rel="noreferrer">documentation</a>.</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;AVFoundation/AVFoundation.h&gt;
  
  @interface PlayerView : UIView
  @property (nonatomic) AVPlayer *player;
  @end
  
  @implementation PlayerView
  + (Class)layerClass {
      return [AVPlayerLayer class];
  }
  - (AVPlayer*)player {
      return [(AVPlayerLayer *)[self layer] player];
  }
  - (void)setPlayer:(AVPlayer *)player {
      [(AVPlayerLayer *)[self layer] setPlayer:player];
  }
  @end
  </code></pre>
  
  <p>I set up my AVPlayer (contains video asset with size 320x240) in this PlayerView (with frame.size.width = 100, frame.size.height = 100) and my video is resized. How can i get size of video after adding in PlayerView?</p>