SendBirdRecordingDelegate
@objc(SBCSendBirdRecordingDelegate)
public protocol SendBirdRecordingDelegate : AnyObject
Device-wide recordingDelegate for SendBirdCall.
Since
1.3.0-
Notifies that a recording session has been saved successfully. This receives information about the recording through the following parameters.
class MyClass: SendBirdRecordingDelegate { func didSaveRecording(call: DirectCall, recordingId: String, options: RecordingOptions, outputURL: URL) { // Handle successful recording } }Since
1.3.0Declaration
Swift
func didSaveRecording(call: DirectCall, recordingId: String, options: RecordingOptions, outputURL: URL)Parameters
callA recorded direct call.
recordingIdA unique identifier of the recording session created in
startRecording.optionsAn option that is used when starting a recording session.
outputURLA URL which the recorded file is saved.
-
Notifies that a recording session has not been saved. This receives information about the recording through the following parameters.
class MyClass: SendBirdRecordingDelegate { func didFailToSaveRecording(call: DirectCall, recordingId: String, error: SBCError) { // Handle failed recording. } }Declaration
Swift
func didFailToSaveRecording(call: DirectCall, recordingId: String, error: SBCError)Parameters
callA recorded direct call.
recordingIdA unique identifier of the recording session created in
startRecording.errorAn error that occurred while saving a recording.
View on GitHub
SendBirdRecordingDelegate Protocol Reference