VideoFrame
@objcMembers
public class VideoFrame : NSObject
VideoFrame
is a class which contains a VideoFrameBuffer
and metadata necessary for transmission.
Typically produced via a VideoSource
and consumed via a VideoSink
-
Width of the video frame in pixels.
Declaration
Swift
public var width: Int { get }
-
Height of the video frame in pixels.
Declaration
Swift
public var height: Int { get }
-
Timestamp in nanoseconds at which the video frame was captured from some system monotonic clock. Will be aligned and converted to NTP (Network Time Protocol) within AmazonChimeSDKMedia framework, which will then be converted to a system monotonic clock on remote end.
May be different on frames emanated from AmazonChimeSDKMedia framework.
Declaration
Swift
public let timestampNs: Int64
-
Rotation of the video frame buffer in degrees clockwise from intended viewing horizon.
e.g. If you were recording camera capture upside down relative to the orientation of the sensor, this value would be
VideoRotation.rotation180
.Declaration
Swift
public let rotation: VideoRotation
-
Object containing actual video frame data in some form.
Declaration
Swift
public let buffer: VideoFrameBuffer
-
Declaration
Swift
public init(timestampNs: Int64, rotation: VideoRotation, buffer: VideoFrameBuffer)
-
Declaration
Swift
public init?(sampleBuffer: CMSampleBuffer)