Operates events in CG (for C#, Visual Basic languages).
Methods
OnCGEvent
This method is called when some CG event occurs.
Syntax
OnCGEvent(
long llCallbackCookie,
string bsItemOrCompositionID,
string bsEventType,
string bsEventParam
)
Parameters
llCallbackCookie - callback cookie
bsItemOrCompositionID - item or composition ID
bsEventType - type of event
bsEventParam - parameters of event
OnEndOfClip
This method is called when a clip is over.
Syntax
OnEndOfClip(
long llCallbackCookie,
string bsItemID
)
Parameters
llCallbackCookie - callback cookie
bsItemID - ID of item
OnFlashCallback
This method is called when some flash callback event occurs.
Syntax
OnFlashCallback(
long llCallbackCookie,
string bsItemID,
string bsMethodName,
string bsParameters
)
Parameters
llCallbackCookie - callback cookie
bsItemID - ID of item
bsMethodName - flash method name
bsParameters - parameters of flash method
OnFrame
This method is called on every frame processed by CG.
Syntax
OnFrame(
long llCallbackCookie,
double dblTime,
int nMediaTime,
int nFrameNum
)
Parameters
llCallbackCookie - callback cookie
dblTime - frame time
nMediaTime - time in a media stream
nFrameNum - a number of the frame
OnTransitionDone
This method is called when transition between items is done.
Syntax
OnTransitionDone(
long llCallbackCookie,
string bsItemID,
bool bShow
)
Parameters
llCallbackCookie - callback cookie
bsItemID - ID of the item
bShow - indicates whether item is shown