MULTIMEDIA
Provides access to the Window's Media Control Interface for the desktop client.
WebVue support - Not applicable. Returns an unsuccessful code if used in this context.
Mode | Mnemonic | Syntax |
0 | SEND | 1 |
1 | OPENW | 2 |
2 | WINDOW | 3 |
The MULTIMEDIA instruction is based on the Windows Media Control Interface (MCI). The reference list of MCI Command strings is available at https://docs.microsoft.com/windows/win32/multimedia/mci-command-strings
Syntax 1
StrVal = MULTIMEDIA(Mode, MCI_String);
Return type: STR.
Argument |
Meaning |
MCI_string |
The string to be used. Type STR. |
Execution
Mode |
Mnemonic |
Action |
0 |
SEND |
Send a MCI command using the string of characters contained in the parameter MCI_String. Return: The status of the MCI command, or an empty string if the command cannot be executed in this context. |
Syntax 2
IntVal = MULTIMEDIA(Mode, device_id, res_name[, window [, wbranch [, x, y, w, h]]]);
Return type: INTEGER.
Argument |
Meaning |
device_id |
The alias of the resource. |
res_name |
The resource name. |
window |
The window for embedding the resource. |
wbranch |
The mimic branch for embedding the resource. |
x, y |
Co-ordinates of its top left corner |
w, h |
Width and height. |
Execution
Mode |
Mnemonic |
Action |
1 |
OPENW |
Open the video resource res_name (file .AVI, Overlay video, etc.) with the alias device_id embedding it in the window specified by window and its branch wbranch. Return: 1 if OK, else 0. |
The picture is positioned using the co-ordinates of its top left corner (x and y).
The size is specified by its width and height (w and h). If no window is specified, a window is created outside the application.
Syntax 3
IntVal = MULTIMEDIA(Mode, device_id, window , wbranch[, x, y, w, h]);
Return type: INTEGER.
Argument |
Meaning |
device_id |
The alias of the resource. |
window |
The window for embedding the resource. |
wbranch |
The mimic branch for embedding the resource. |
x, y |
Co-ordinates of its top left corner |
w, h |
Width and height. |
Execution
Mode |
Mnemonic |
Action |
2 |
WINDOW |
Embed the video resource specified with the alias device_id in the window specified by window and its branch wbranch. Return: 1 if OK, else 0 (for example if the window is not open). |
The picture is positioned using the co-ordinates of its top left corner (x and y).
The size is specified by its width and height (w and h). If no window is specified, a window is created outside the application.
Example
For a larger example, select the Example link above.
SUB Main()
WINDOW("OPEN", "toto", "sample", "");
IF (WINDOW("IS_OPEN","toto","sample")) THEN
MULTIMEDIA ("OPENW","MOVIE","Clock.avi","toto", "sample",20,10,220,240);
END IF
MULTIMEDIA ("SEND","Play movie");
MULTIMEDIA ("SEND","Set movie time format frames");
END SUB