iOS Developer Library

Developer

AVFoundation Framework Reference AVAsynchronousVideoCompositionRequest Class Reference

Options
Deployment Target:

On This Page
Language:

AVAsynchronousVideoCompositionRequest

Inherits From


  • NSObject
  • AVAsynchronousVideoCompositionRequest

Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 7.0 and later

An AVAsynchronousVideoCompositionRequest instance contains the information necessary for a video compositor to render an output pixel buffer.

The video compositor must implement the AVVideoCompositing protocol.

  • Returns the source pixel buffer for the specified track ID.

    Declaration

    Swift

    func sourceFrameByTrackID(_ trackID: CMPersistentTrackID) -> Unmanaged<CVPixelBuffer>!

    Objective-C

    - (CVPixelBufferRef)sourceFrameByTrackID:(CMPersistentTrackID)trackID

    Parameters

    trackID

    The track ID for the requested source frame.

    Return Value

    The source CVPixelBufferRef for trackID.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later

    See Also

    sourceTrackIDs

  • The time for which the frame should be composed. (read-only)

    Declaration

    Swift

    var compositionTime: CMTime { get }

    Objective-C

    @property(nonatomic, readonly) CMTime compositionTime

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later

  • The video composition render context making the request. (read-only)

    Declaration

    Swift

    var renderContext: AVVideoCompositionRenderContext! { get }

    Objective-C

    @property(nonatomic, readonly) AVVideoCompositionRenderContext *renderContext

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later

  • The track IDs of all the source buffers that are available to compose the frame. (read-only)

    Declaration

    Swift

    var sourceTrackIDs: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *sourceTrackIDs

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later

  • The video composition instruction to use to compose the frame. (read-only)

    Declaration

    Swift

    var videoCompositionInstruction: AVVideoCompositionInstructionProtocol! { get }

    Objective-C

    @property(nonatomic, readonly) id< AVVideoCompositionInstruction > videoCompositionInstruction

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later