iOS Developer Library

Developer

AVFoundation Framework Reference AVSynchronizedLayer Class Reference

Options
Deployment Target:

On This Page
Language:

AVSynchronizedLayer

AVSynchronizedLayer a subclass of CALayer with layer timing that synchronizes with a specific AVPlayerItem. More...

Inheritance


Import Statement


import AVFoundation @import AVFoundation;

Availability


Available in iOS 4.0 and later.
  • Returns a new synchronized layer with timing synchronized with a given player item.

    Declaration

    Swift

    init!(playerItem playerItem: AVPlayerItem!) -> AVSynchronizedLayer

    Objective-C

    + (AVSynchronizedLayer *)synchronizedLayerWithPlayerItem:(AVPlayerItem *)playerItem

    Parameters

    playerItem

    A player item.

    Return Value

    A new synchronized layer with timing synchronized with playerItem.

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.

  • The player item to which the timing of the layer is synchronized.

    Declaration

    Swift

    var playerItem: AVPlayerItem!

    Objective-C

    @property(nonatomic, retain) AVPlayerItem *playerItem

    Import Statement

    import AVFoundation

    Availability

    Available in iOS 4.0 and later.