DIAdem Help

Method: SetVideo for Video

  • Updated2024-09-12
  • 2 minute(s) read

Method: SetVideo for Video

Specifies whether DIAdem uses a video file or a video channel in a video in DIAdem VIEW and specifies the name of the video file or the channel reference of the video channel. Use the FileName for Video property to specify the name of the video. Use the VideoSourceMode for Video property to specify whether DIAdem uses a video file or a video channel.

Object.SetVideo(VideoSourceMode, FilenameOrVideoChannelName)
ObjectVideo
Object with this method
VideoSourceModeLongInteger
Enumeration with read and write access and the following selection terms:
 0
eVideoFile 
Video file
 1
eVideoChannel 
Video channel
FilenameOrVideoChannelNameString
Specifies the video file name or the channel reference of the video channel.

The following example creates a video area and assigns a video channel to it:

VBScriptPython

 

Dim oMySheet, oMyObj
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "Video"
Set oMyObj = oMySheet.ActiveArea.DisplayObj
Call oMyObj.SetVideo(eVideoFile, ProgramDrv & "Examples\Documents\Safetytest01.wmv")