Click or drag to resize

ICameraManagerExportAsf Method

Note: This API is now obsolete.

Starts an export of audio and video data for specified cameras. Since ASF export is not supported the data is stored in the MP4 format that can be played back by the wide list of modern video players including Microsoft Media Player and VLC. This method is obsolete. Please use ExportRecordings method instead.

Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
[ObsoleteAttribute("Please use ExportRecordings with MP4 export-format as a replacement for ASF format.")]
void ExportAsf(
	Camera[] cameras,
	DateTime from,
	DateTime to,
	string targetDirectory,
	string name,
	AsfQuality quality
)

Parameters

cameras  Camera
Array with all the cameras that shall be exported.
from  DateTime
Start date of the data to backup. Converts the value of the current DateTime object to UTC if required. The DateTime value is determined by the Kind property of the current DateTime object. If the Kind property is set to Undefined then the current DateTime object is assumed to be a local time, and the conversion is performed as if Kind were Local.
to  DateTime
End date until that the data shall be backed up. Converts the value of the current DateTime object to UTC if required. The DateTime value is determined by the Kind property of the current DateTime object. If the Kind property is set to Undefined then the current DateTime object is assumed to be a local time, and the conversion is performed as if Kind were Local.
targetDirectory  String
TargetDirectory where the backup files shall be placed. Supported values are: paths on local hard drives, UNC path to network dives and CD/DVD writers
name  String
Name that is assigned to the export and that is displayed when the exported data is accessed.
quality  AsfQuality
Quality of the exported video
Exceptions
ExceptionCondition
SdkException Thrown in case of any errors occurred during export process.
For example:
- Export target directory is not whitelisted.
Remarks
In environment with multiple time zones use only UTC time.

Tip  Tip
The method uses "accept known good" input validation strategy and ensures that requested targetDirectory is strictly within a configured whitelist where exports are allowed.
Requested export path must met one of the following condition:
- Specified path directory is white-listed itself;
- Specified path directory is subdirectory of any white-listed directory;
- Specified path is within an optical disc device, such as a CD or DVD-ROM or within removable storage device, such as a floppy disk drive or a USB;
When none of the conditions above are met, requested export is rejected.
Tip  Tip
Exports whitelist is defined by BVMS administrator on Central Server in ..\ProgramData\Bosch\VMS\ServerData\PathWhitelistForExports.txt.

See Also