Command Reference - Media Player Object Actions
Stops a Media Player Object.
|
Action ID: |
49 |
The name of the Media Player Object that you want to stop.
This action will always fail on a page's (or project's) "On Initialize" event. When the "On Initialize" event occurs, the Media Player Object hasn't been created yet, so there is no media to play.
This action will always fail on a page's "On Show" event. When the "On Show" event occurs, the Media Player Object has been created, but it has not opened any media yet, so there is no media to play. In other words, the Media Player object exists, but it doesn't have anything "inside it" yet.
If you want to
stop the media as soon as the page opens, use this action on the Media
Player Object's "On Stream Open" event. (The "On Stream
Open" event is the earliest point at which the Media Player Object
can be stopped.)
Or better yet, just unselect the Automatically start
playing media option for the Media Player Object itself. (You can
access this option by pressing the Advanced Options
button on the Settings tab of the object's Properties
dialog.)
|
Value |
Simple Message |
Verbose Message |
|
0 (OK) |
|
|
|
1 |
MSG_ERR_PLAY_MEDIA_PLAYER_OBJECT |
MSG_ERR_STOP_MEDIA_PLAYER_OBJECT |
None