QMedia |
![]() ![]() |
The movie area is QMedia Light's plug-in area that is used to play back movies.
It is a typical plug-in area in 4D; like most other plug-in areas, it is identified by a long integer variable that is assigned to the plug-in area in 4D's form editor. The plug-in area identifier is referred to in this manual as "movie area reference" or "area reference".
Creating a movie area
To create a movie plug-in area on a form, select _QMovie as the type of plug-in area from the properties palette.
Area visibility
QMedia includes two specific commands, QM_SetAreaVisible and QM_GetAreaVisible, to control the visibility of a movie area. Use QM_SetAreaVisible rather than 4D's SET VISIBLE command in order to show or hide the movie area object.
Showing a movie on a list form
QMedia's plug-in area can not be placed on list forms (output layouts) as is. However, you can display a movie picture in a list form. Use QM_GetMoviePict to get the corresponding picture into a standard 4D picture object.
Printing a movie snapshot
QMedia's plug-in area can not be printed as is. You can print a snapshot of a movie after getting the corresponding picture with the QM_GetMoviePict command into a printable 4D object.
The commands in this group are:
QM_SetAreaMovie | Assigns a movie to a movie plug-in area. |
QM_GetAreaMovie | Returns the movie currently assigned to a movie plug-in area. |
QM_SetControllerVisible | Controls the visibility of the movie controller. |
QM_GetControllerVisible | Returns the visibility status of the movie controller. |
QM_SetControllerPartVisible | Controls the visibility of a specific movie controller part. |
QM_GetControllerPartVisible | Returns the visibility status of a specific movie controller part. |
QM_SetKeysEnabled | Enables/disables handling of keystrokes. |
QM_GetKeysEnabled | Returns the keystroke handling status. |
QM_SetDragEnabled | Enables/disables drag n' drop to the Macintosh desktop. |
QM_GetDragEnabled | Returns drag 'n drop handling status. |
QM_SetEditingEnabled | Enables/disables movie editing. |
QM_GetEditingEnabled | Returns movie editing status. |
QM_SetLooping | Sets the looping property. |
QM_GetLooping | Returns the looping property. |
QM_SetPlaySelection | Enables/disables constrained playback to the movie's selection. |
QM_GetPlaySelection | Sets the play selection property. |
QM_SetPlayAllFrames | Sets the play all frames property. |
QM_GetPlayAllFrames | Returns the play all frames property. |
QM_SetBadgeUsage | Sets the badge usage property. |
QM_GetBadgeUsage | Returns the badge usage property. |
QM_GetControllerType | Returns the movie controller type. |
QM_SetAreaVisible | Controls the visibility of a movie plug-in area as a whole. |
QM_GetAreaVisible | Returns the visibility status of a movie plug-in area. |