Home > rainway-sdk-native > Runtime > startExportingCaptureStreamToFile
Runtime.startExportingCaptureStreamToFile() method
Starts exporting the locally captured audio and video stream to a pair of files in the specified directory.
Signature:
startExportingCaptureStreamToFile(streamId: number, path: string): Promise<FilePaths>;
Parameters
Parameter | Type | Description |
---|---|---|
streamId | number | |
path | string | path to a directory where the exported files should be stored. The files will be prefixed with the guest's external ID. |
Returns:
Promise<FilePaths>
Complete file paths for the audio and video files.