Instance Method
setFrameCryptor(_:)
Installs or replaces frame crypto with a FrameCryptor (the FrameCryptor version).
@discardableResult @MainActor func setFrameCryptor(_ cryptor: FrameCryptor) -> Int32Return Value
The RevueKit result code (0 on success).
Discussion
Each frame is copied into Data for your methods; the SDK manages the object’s memory. Call it any time after initialize, including during a call. Before initialize it returns -1 and installs nothing. The last installed version replaces the other one.
The SDK keeps a replaced or removed FrameCryptor alive until destroy(), because a media thread may still be using it for the frame in progress.