Director Help Member Functions

DirectMediaXtra provides several functions that can be called from Lingo to retrieve information about the Media linked to the members.

AddCuePoint(member x, cuepointtime, cuepointname) - This function can be used to create a new cue point from Lingo. Cue points are automatically sorted for you.
Example: addcuepoint(member 2, 10500, "NewCue")

RemoveCuePoint(member x, cuepointindex) - This function can be used to remove a cue point. You should supply the index of the cue point to be removed.
Example: removecuepoint(member 2, 2)

ScanFile(member x) - This function can be used to extract the correct duration and dimensions of a video file when the linked media is changed via Lingo. 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: scanfile(member 2)

Register(member x, registrationnumber) -This function can be used in Projectors to register DirectMediaXtra at runtime, and allow developers to save linked casts. It is not necessary for the normal operation of the Xtra.
Example: register(member 2, "SERIALNUMBERHERE")

IsDirectShowInstalled(member x) - 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 cast member index to access this function.
Example:isDirectShowInstalled(member 1)
if the result=0 then
alert("Please install DShow")
else
--nothing
end if

DirectMediaXtra Help