on DVDeventNotification
Usage
-- Lingo syntax
on DVDeventNotification objectRef, event {, eventArg1} {, eventArg2} {,
eventArg3}
statement(s)
end
// JavaScript syntax
function DVDeventNotification (objectRef, event {, eventArg1} {, eventArg2} {,
eventArg3}) {
statement(s);
}
Description
Author-specified DVD event handler. Contains statements that run in response to events that
occur while a DVD is playing.
This handler can be used to track all DVD events. In the script examples above,
first parameter passed to the DVDeventNotification handler, is a reference to the
DVDeventNotification object itself. The actual event that occurs is always passed as the second
parameter,
event
third parameter,
, may contain additional event information.
eventArg3
The following table lists the events that can occur while a DVD is playing.
Event
angleChange
audioStreamChange
buttonChange
chapterAutoStop
. Some events contain additional information about them that is passed as a
. In some cases, a fourth and fifth parameter,
eventArg1
Description
Occurs when either the number of available angles changed or the current
user angle number changed.
The following additional information is passed to
when this event occurs:
- An integer that indicates the number of available angles.
•
eventArg2
When the number of available angles is 1, the current video is not
multiangle.
- An integer that indicates the current user angle number.
•
eventArg3
Occurs when the current user audio stream number changed for the main
title.
The following additional information is passed to
when this event occurs:
- An integer that indicates the new user audio stream number.
•
eventArg2
Stream
0xFFFFFFFF
Occurs when either the number of available buttons changed or the
currently selected button number changed.
The following additional information is passed to
when this event occurs:
- An integer that indicates the number of available buttons.
•
eventArg2
- An integer that indicates the currently selected button
•
eventArg3
number. Selected button number 0 implies that no button is selected.
Occurs when playback stopped as a result of an automatic stop.
indicates that no stream is selected.
on DVDeventNotification
, the
objectRef
and
eventArg2
DVDeventNotification
DVDeventNotification
DVDeventNotification
165
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers