Media Player Object - Load

Loads a new media file into a Media Player Object.

Action ID:
Action Category:
Action List Syntax:

90
Media Player Object
MediaPlayerObject[<<OBJECTNAME>>].Load (<<DOCUMENT>>)

Settings

Object

The Media Player Object that will have the new file loaded into it.

If the Media Player Object is visible when the action is performed, the new file will be loaded into the Media Player Object and the first frame will be displayed. (The new video will not start playing automatically.)

If the Media Player Object is not visible, the new file will be loaded into the object, but will not be made visible until the Media Player Object is shown (using a Page - Show Object action).

File name:

The full path and filename of the media file that will be loaded into the Media Player Object.

Press the Locate file button ( ) to browse your project's Distribution Folder for a file. (You will need to distribute this file with your AutoPlay application.) Or, simply type the full path to where the file will be at run time directly into the field.

External reference

The External reference option is always enabled for the File name field.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_MEDIA_PLAYER_OBJECT_LOAD

MSG_ERR_MEDIA_PLAYER_OBJECT_LOAD
MSG_ERR_OBJECT_NOT_FOUND
<<OBJECTNAME>>

Examples

Loading and playing an MPEG