RevueSDK · Swift reference Guides

Type Alias

FrameEncryptCallback

加密單幀 callback。回 0=成功;非 0=失敗(drop 該幀 + 發 FrameCryptoError 事件)。

typealias FrameEncryptCallback = @convention(c) (UInt32, UInt32, UnsafePointer<UInt8>?, Int, UnsafeMutablePointer<UInt8>?, Int, UnsafeMutablePointer<Int>?, UnsafeMutablePointer<UInt64>?, UnsafeMutableRawPointer?) -> Int32

Discussion

參數:(mediaType, ssrc, plaintext, plaintextSize, ciphertext, ciphertextCapacity, outCiphertextSize, outCounter, userData)。