Videoplay(sprite
x) - Used to start or resume playback of a Media file.
Playback is usually started automatically when the sprite is loaded,
unless the "Paused at Start" option is checked.
Example: videoplay(sprite 1)
Videopause(sprite
x) - Used to pause playback of a Media file.
Example: videopause(sprite 1)
Videoseek(sprite
x, time) - Seeks the video to a different time in
the Media file, and pauses the video. Time should be expressed
in milliseconds.
Example: videoseek(sprite 1, 15000)
Videoplaysegment(sprite
x, starttime, endtime) -Plays a segment of the Media
file. Please note that using this option actually limits access
to the times of the stream that falls outside the playback segment
boundaries. You should use another videoplaysegment() command
to seek to a different time on the stream.
Example: videoplaysegment(sprite 2, 10000, 25000)
IsPastCuePoint(sprite
x, cuepointindex) - Returns TRUE if the cue point
indicated has already passed, FALSE otherwise. DirectMediaXtra
only supports this function used with cuepoint indexes, not names.
Example:isPastCuePoint(sprite
1, 2)
put the result
-- 1
SetVolume(sprite
x, volume) - Sets the volume of audio playback during
the current sprite span. Valid volumes are in the range of -100
to 0 dB.
Example: setvolume(sprite 1, 0)
GetVolume(sprite
x) - Returns the current volume of audio playback,
in dB.
Example: put getvolume(sprite 1).
-- -20
SetBalance(sprite
x, balance) - Sets the balance of audio playback during
the current sprite span. Valid values are in the range of -100
to 100 dB.
Example: setbalance(sprite 1, 0)
GetBalance(sprite
x) - Returns the current balance of audio playback,
in dB.
Example: put getbalance(sprite 1).
-- -100
SetRate(sprite
x, rate) - Sets the rate of playback during the current
sprite span. Valid values are in the range of 0 to 200 %.
Example: setrate(sprite 1, 80)
GetRate(sprite
x) - Returns the current playback rate, in %.
Example: put getrate(sprite 1)
-- 150
SetFullScreen(sprite
x) - This function will trigger the ActiveMovie/DirectShow
full-screen video renderer. The DirectMediaXtra sprite will be
promoted to full-screen playback and a new video surface will
be created. The full-screen renderer works independently from
the authoring application, and it will be full-screen even if
the stage in Director does not fill the whole monitor. Mouse event
detection and keypresses are NOT passed to the authoring application,
so you should use this function in conjunction with cuepoints
to return control to the authoring application. Remember to call
RemoveFullScreen() when you are done with playback. On most applications
it is better to simply stretch the DirectMediaXtra sprite to cover
the whole stage area: you will still benefit from any video driver
acceleration and interactivity control will be retained.
Example: setfullscreen(sprite 1)
RemoveFullScreen(sprite
x) - This function will disable the ActiveMovie/DirectShow
full-screen video renderer. The DirectMediaXtra sprite will return
to its original window on the stage in Director.
Example: removefullscreen(sprite 1)
|