VideoFrame
public enum VideoFrame
映像フレームの種別です。 現在の実装では次の映像フレームに対応しています。
- ネイティブの映像フレーム (
RTCVideoFrame) CMSampleBuffer(映像のみ、音声は非対応。RTCVideoFrameに変換されます)
-
ネイティブの映像フレーム。
CMSampleBufferから生成した映像フレームは、ネイティブの映像フレームに変換されます。Declaration
Swift
case native(capturer: RTCVideoCapturer?, frame: RTCVideoFrame)
-
映像フレームの幅
Declaration
Swift
public var width: Int { get } -
映像フレームの高さ
Declaration
Swift
public var height: Int { get } -
映像フレームの生成時刻
Declaration
Swift
public var timestamp: CMTime? { get }
-
初期化します。 指定されたサンプルバッファーからピクセル画像データを取得できなければ
nilを返します。音声データを含むサンプルバッファーには対応していません。
Declaration
Swift
public init?(from sampleBuffer: CMSampleBuffer)Parameters
sampleBufferピクセルバッファーを含むサンプルバッファー
View on GitHub
Install in Dash