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
call
A recorded direct call.
recordingId
A unique identifier of the recording session created in
startRecording
.options
An option that is used when starting a recording session.
outputURL
A 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
call
A recorded direct call.
recordingId
A unique identifier of the recording session created in
startRecording
.error
An error that occurred while saving a recording.