You can use Play actions to dynamically create a Media Player component for media playback. The action allows you to configure a playlist for the created component.
Creating a Play Action
Select the component to trigger the action. Go to the Actions tab in Inspector and click the button below the Actions list. Then select the Play action from the pop-up menu.
You can now select the Event, Receiver, and other general settings for the action. For more information on general settings of actions, see Using Actions.
Play Action Settings
The Play action offers the following settings:
- Playlist: Compose a playlist for the created Media Player component.
- Toggle Playback: Select to toggle between starting and stopping playback when the specified event is repeated.
- Positioning: Select the position of the created Media Player component.
- Loop: Select this option to play the content in a continuous loop.
- Shuffle: Select this option to shuffle the content in the playlist.
- Close When Done: Select this option to close the created media player when playback is finished.
- Close on Idle: Select this option to close the media player if it hasn't be interacted with for a certain amount of time.
- Idle Time: Enter a time for the Close on Idle option.
- Auto Advance: Select this option to automatically move on to the next asset in the playlist.
- Advance Interval: Enter how long each asset in the playlist should play before proceeding to the next.
Using Play Actions
You can use a Play action to dynamically create a Media Player component in the interface. The new component is created by the action and does not have to be created by you beforehand. However, this may restrict your control somewhat, for Styles aren't available in this case.
The Play action is convenient if you want to show media playback for a limited amount of time and then remove the Media Player component from the interface. You can accomplish this with a regular media player using Show and Hide actions, but the Play action simplifies this process greatly.