Freigeben über


CallRecording class

CallRecording-Klasse stellt verwandte APIs für die Anrufaufzeichnung dar.

Konstruktoren

CallRecording(string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

Methoden

delete(string, OperationOptions)

Löscht eine Aufzeichnung.

downloadStreaming(string, DownloadRecordingOptions)

Gibt einen Datenstrom mit einer Anrufaufzeichnung zurück.

downloadToPath(string, string, DownloadRecordingOptions)

Lädt eine Anrufaufzeichnungsdatei in den angegebenen Pfad herunter.

downloadToStream(string, WritableStream, DownloadRecordingOptions)

Lädt eine Aufzeichnungsdatei für Anrufe in den angegebenen Datenstrom herunter.

getState(string, OperationOptions)

Gibt Anrufaufzeichnungseigenschaften zurück.

pause(string, OperationOptions)

Hält eine Anrufaufzeichnung an.

resume(string, OperationOptions)

Setzt eine Anrufaufzeichnung fort.

start(StartRecordingOptions)

Startet eine Anrufaufzeichnung mit den angegebenen Optionen.

stop(string, OperationOptions)

Beendet eine Anrufaufzeichnung.

Details zum Konstruktor

CallRecording(string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

new CallRecording(endpoint: string, credential: TokenCredential | KeyCredential, options?: CallAutomationApiClientOptionalParams)

Parameter

endpoint

string

options

CallAutomationApiClientOptionalParams

Details zur Methode

delete(string, OperationOptions)

Löscht eine Aufzeichnung.

function delete(recordingLocationUrl: string, options?: OperationOptions): Promise<void>

Parameter

recordingLocationUrl

string

Die URL des Aufzeichnungsspeicherorts. Erforderlich.

options
OperationOptions

Zusätzliche Anforderungsoptionen enthalten optionen für deleteRecording-API.

Gibt zurück

Promise<void>

downloadStreaming(string, DownloadRecordingOptions)

Gibt einen Datenstrom mit einer Anrufaufzeichnung zurück.

function downloadStreaming(sourceLocationUrl: string, options?: DownloadRecordingOptions): Promise<ReadableStream>

Parameter

sourceLocationUrl

string

Die URL des Quellspeicherorts. Erforderlich.

options
DownloadRecordingOptions

Zusätzliche Anforderungsoptionen enthalten downloadRecording-API-Optionen.

Gibt zurück

Promise<ReadableStream>

downloadToPath(string, string, DownloadRecordingOptions)

Lädt eine Anrufaufzeichnungsdatei in den angegebenen Pfad herunter.

function downloadToPath(sourceLocationUrl: string, destinationPath: string, options?: DownloadRecordingOptions): Promise<void>

Parameter

sourceLocationUrl

string

Die URL des Quellspeicherorts. Erforderlich.

destinationPath

string

Der Zielpfad. Erforderlich.

options
DownloadRecordingOptions

Zusätzliche Anforderungsoptionen enthalten downloadRecording-API-Optionen.

Gibt zurück

Promise<void>

downloadToStream(string, WritableStream, DownloadRecordingOptions)

Lädt eine Aufzeichnungsdatei für Anrufe in den angegebenen Datenstrom herunter.

function downloadToStream(sourceLocationUrl: string, destinationStream: WritableStream, options?: DownloadRecordingOptions): Promise<void>

Parameter

sourceLocationUrl

string

Die URL des Quellspeicherorts. Erforderlich.

destinationStream

WritableStream

Der Zieldatenstrom. Erforderlich.

options
DownloadRecordingOptions

Zusätzliche Anforderungsoptionen enthalten downloadRecording-API-Optionen.

Gibt zurück

Promise<void>

getState(string, OperationOptions)

Gibt Anrufaufzeichnungseigenschaften zurück.

function getState(recordingId: string, options?: OperationOptions): Promise<RecordingStateResult>

Parameter

recordingId

string

Die recordingId, die der Aufzeichnung zugeordnet ist.

options
OperationOptions

Zusätzliche Anforderungsoptionen enthalten getRecordingProperties-API-Optionen.

Gibt zurück

pause(string, OperationOptions)

Hält eine Anrufaufzeichnung an.

function pause(recordingId: string, options?: OperationOptions): Promise<void>

Parameter

recordingId

string

Die recordingId, die der Aufzeichnung zugeordnet ist.

options
OperationOptions

Zusätzliche Anforderungsoptionen enthalten optionen für pauseRecording-API.

Gibt zurück

Promise<void>

resume(string, OperationOptions)

Setzt eine Anrufaufzeichnung fort.

function resume(recordingId: string, options?: OperationOptions): Promise<void>

Parameter

recordingId

string

Die recordingId, die der Aufzeichnung zugeordnet ist.

options
OperationOptions

Zusätzliche Anforderungsoptionen enthalten Optionen für resumeRecording-API.

Gibt zurück

Promise<void>

start(StartRecordingOptions)

Startet eine Anrufaufzeichnung mit den angegebenen Optionen.

function start(options: StartRecordingOptions): Promise<RecordingStateResult>

Parameter

options
StartRecordingOptions

Vorgangsoptionen.

Gibt zurück

stop(string, OperationOptions)

Beendet eine Anrufaufzeichnung.

function stop(recordingId: string, options?: OperationOptions): Promise<void>

Parameter

recordingId

string

Die recordingId, die der Aufzeichnung zugeordnet ist.

options
OperationOptions

Zusätzliche Anforderungsoptionen enthalten optionen für stopRecording-API.

Gibt zurück

Promise<void>