次の方法で共有


CallRecording class

CallRecording クラスは、通話記録関連の API を表します。

コンストラクター

CallRecording(string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

メソッド

delete(string, OperationOptions)

記録を削除します。

downloadStreaming(string, DownloadRecordingOptions)

通話記録を含むストリームを返します。

downloadToPath(string, string, DownloadRecordingOptions)

指定したパスに通話記録ファイルをダウンロードします。

downloadToStream(string, WritableStream, DownloadRecordingOptions)

指定したストリームに通話記録ファイルをダウンロードします。

getState(string, OperationOptions)

通話記録プロパティを返します。

pause(string, OperationOptions)

通話記録を一時停止します。

resume(string, OperationOptions)

通話記録を再開します。

start(StartRecordingOptions)

指定したオプションを使用して通話記録を開始します。

stop(string, OperationOptions)

通話記録を停止します。

コンストラクターの詳細

CallRecording(string, TokenCredential | KeyCredential, CallAutomationApiClientOptionalParams)

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

パラメーター

endpoint

string

options

CallAutomationApiClientOptionalParams

メソッドの詳細

delete(string, OperationOptions)

記録を削除します。

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

パラメーター

recordingLocationUrl

string

記録場所の URL。 必須。

options
OperationOptions

追加の要求オプションには、deleteRecording API オプションが含まれています。

戻り値

Promise<void>

downloadStreaming(string, DownloadRecordingOptions)

通話記録を含むストリームを返します。

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

パラメーター

sourceLocationUrl

string

ソースの場所の URL。 必須。

options
DownloadRecordingOptions

追加の要求オプションには、downloadRecording API オプションが含まれています。

戻り値

Promise<ReadableStream>

downloadToPath(string, string, DownloadRecordingOptions)

指定したパスに通話記録ファイルをダウンロードします。

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

パラメーター

sourceLocationUrl

string

ソースの場所の URL。 必須。

destinationPath

string

宛先パス。 必須。

options
DownloadRecordingOptions

追加の要求オプションには、downloadRecording API オプションが含まれています。

戻り値

Promise<void>

downloadToStream(string, WritableStream, DownloadRecordingOptions)

指定したストリームに通話記録ファイルをダウンロードします。

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

パラメーター

sourceLocationUrl

string

ソースの場所の URL。 必須。

destinationStream

WritableStream

宛先ストリーム。 必須。

options
DownloadRecordingOptions

追加の要求オプションには、downloadRecording API オプションが含まれています。

戻り値

Promise<void>

getState(string, OperationOptions)

通話記録プロパティを返します。

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

パラメーター

recordingId

string

記録に関連付けられている recordingId。

options
OperationOptions

追加の要求オプションには、getRecordingProperties api オプションが含まれています。

戻り値

pause(string, OperationOptions)

通話記録を一時停止します。

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

パラメーター

recordingId

string

記録に関連付けられている recordingId。

options
OperationOptions

追加の要求オプションには、pauseRecording API オプションが含まれています。

戻り値

Promise<void>

resume(string, OperationOptions)

通話記録を再開します。

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

パラメーター

recordingId

string

記録に関連付けられている recordingId。

options
OperationOptions

追加の要求オプションには、resumeRecording API オプションが含まれています。

戻り値

Promise<void>

start(StartRecordingOptions)

指定したオプションを使用して通話記録を開始します。

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

パラメーター

options
StartRecordingOptions

操作オプション。

戻り値

stop(string, OperationOptions)

通話記録を停止します。

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

パラメーター

recordingId

string

記録に関連付けられている recordingId。

options
OperationOptions

追加の要求オプションには、stopRecording API オプションが含まれています。

戻り値

Promise<void>