CallIcon(@"IconName",
#addcuepoint, cuepointtime, "cuepointname")
- This function can be used to create a new cue point from scripting.
Cue points are automatically sorted for you.
Example:
CallIcon(@"DirectMediaXtra", #addcuepoint, 10000, "newcue")
CallIcon(@"IconName",
#removecuepoint, cuepointindex) - This function can
be used to remove a cue point. You should supply the index of
the cue point to be removed.
Example: CallIcon(@"DirectMediaXtra", #removecuepoint,
1)
CallIcon(@"IconName",
#scanfile) - This function can be used to extract
the correct duration and dimensions of a video file when the linked
media is changed via scripting. The file is queried and the castmember
properties are updated automatically. With DirectMediaXtra 1.4
we introduced the adjustdurationbeforeplayback property, which
also adjusts the duration, but does not impose an additional time
penalty (the file is not opened twice), so it is generally better
to leave it checked instead of using scanfile().
Example: CallIcon(@"DirectMediaXtra", #scanfile)
CallIcon(@"IconName",
#register, registration number) -This function can
be used in Projectors to register DirectMediaXtra at runtime,
and allow developers to save the piece. It is not necessary for
the normal operation of the Xtra.
Example:
CallIcon(@"DirectMediaXtra", #register,"SERIALNUMBERHERE")
CallIcon(@"IconName",
#isDirectShowInstalled) - Returns 1 (TRUE) or 0 (FALSE).
Can be used to determine if DirectShow (formerly ActiveMovie)
is installed on the user's machine. You should use a valid DirectMediaXtra
icon to access this function.
Example:
result:=CallIcon(@"DirectMediaXtra", #isDirectShowInstalled)
Trace(result)
-- 1
|