SetVideoOfflineSource
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
Note This function is only allowed inon preStartevent procedure.
Syntax
SetVideoOfflineSource(char windowName[], long sourceType, char sourcePath[]);
Function
Sets the offline source (type and path) for aCANoeVideo Window.
Parameters
windowName The name of the Video Window.
sourceType
- 0|cNoVideoInput
- 1|cVideoFile
- 2|cImageFolder
sourcePath
- ForcNoVideoInputthe path will be ignored.
- ForcVideoFilethis must be a existing video file.
- ForcImageFolderthis must be a existing folder.
Return Values
—
Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.
on preStart
{
//Configure offline source (video file)
SetVideoOfflineSource("Video Window", 1, "MyVideoFile.avi");
}
Related APIs
SetVideoOfflineLoggerCam | SetVideoRecordFile | SetVideoTriggerTimes | StartVideoRecording | StopVideoRecording