The InsertSwitchEvent function allows for a scheduled period of time in EtoE or Black mode. Switch events are always absolute triggered events. When the Switch Event is executed, EtoE will be displayed on the output. Switch events have no predetermined duration. The event will end at the start of the next play event. Since switch events have no duration, they cannot have follow events. EVTSRV_BAD_PARENT is returned when trying to insert a follow event after a switch event. Note: bEtoE == false returns System.NotImplementedException

A Change notice will be generated of type NoticeInsertEvent for the new event. If the event got cued during insertion, a NoticeEventCued notice will generated as well.

With end mode set to EtoE and playbackEtoE set to True, the switch event will show EtoE. With end mode set to black and playbackEtoE set to False, the switch event will show Black. EndMode and PlaybackEtoE can be set via the K2 AppServer Api in the Controller interface.

Namespace:  GrassValley.Mseries.ScheduleEditor
Assembly:  GrassValley.Mseries.ScheduleEditor (in GrassValley.Mseries.ScheduleEditor.dll) Version: 1.0.0.0

Syntax

C#
public string InsertSwitchEvent(
	Object startDate,
	Object startTimecode,
	bool bEtoE
)
Visual Basic (Declaration)
Public Function InsertSwitchEvent ( _
	startDate As Object, _
	startTimecode As Object, _
	bEtoE As Boolean _
) As String
Visual C++
public:
virtual String^ InsertSwitchEvent(
	Object^ startDate, 
	Object^ startTimecode, 
	bool bEtoE
) sealed

Parameters

startDate
Type: System..::.Object
The start date.
startTimecode
Type: System..::.Object
The start timecode.
bEtoE
Type: System..::.Boolean
if set to true the switch event will go into EtoE mode at the scheduled time.

Return Value

Event GUID

Implements

IScheduleEditor..::.InsertSwitchEvent(Object, Object, Boolean)

See Also