AVTimedAnnotationWriter/AAPLPlayerView.m

/*
 Copyright (C) 2014 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 
  Player view backed by an AVPlayerLayer.
  
 */
@import AVFoundation;
 
#import "AAPLPlayerView.h"
 
@implementation AAPLPlayerView
 
+ (Class)layerClass
{
    return [AVPlayerLayer class];
}
 
- (AVPlayer *)player
{
    return [(AVPlayerLayer *)[self layer] player];
}
 
- (void)setPlayer:(AVPlayer *)player
{
    [(AVPlayerLayer *)[self layer] setPlayer:player];
}
 
@end