Skip to main content

SetVideoOfflineSource

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE Note: This function is only allowed in on preStart event procedure.

Function Syntax

SetVideoOfflineSource(char windowName[], long sourceType, char sourcePath[]);

Description

Sets the offline source (type and path) for a CANoe DE product Video Window.

Parameters

  • windowName: The name of the Video Window.
  • sourceType: The type of offline source:
    • 0|cNoVideoInput
    • 1|cVideoFile
    • 2|cImageFolder
    For details see the Offline Source in the CANoe DE product Video Configuration dialog.
  • sourcePath: The corresponding source path:
    • For cNoVideoInput the path will be ignored.
    • For cVideoFile this must be an existing video file.
    • For cImageFolder this must be an existing folder.

Return Values

Example

on preStart
{
  // Configure offline source (video file)
  SetVideoOfflineSource("Video Window", 1, "MyVideoFile.avi");
}
Related Links: SetVideoOfflineLoggerCamSetVideoRecordFileSetVideoTriggerTimesStartVideoRecordingStopVideoRecording