CBLVideoMetadata

Objective-C

@protocol CBLVideoMetadata <NSObject>

Swift

protocol VideoMetadata : NSObjectProtocol

An object containing video-specific metadata.

  • The frame size of the video, in pixels. Will be CGSizeZero if unknown.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize frameSize;

    Swift

    var frameSize: CGSize { get }
  • The frame rate of the video. Will be 0.0 if unknown.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double frameRate;

    Swift

    var frameRate: Double { get }
  • The duration of the video, in seconds. Will be 0.0 if unknown.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval duration;

    Swift

    var duration: TimeInterval { get }
  • The codec of the video, if known. This value is a “FourCC” code, compatible with the FourCharCode and CMVideoCodecType types in CoreMedia. See CMFormatDescription.h for possible values.

    Will be 0x0 if unknown.

    Declaration

    Objective-C

    @property (nonatomic, readonly) uint32_t codec;

    Swift

    var codec: UInt32 { get }