You can add actions to your buttons or other elements to control media such as audio or video. You can play, pause, and toggle media playback. You can also replay the media from the beginning.
When you Play Media, you can Add a start time and/or Add an end time to media playback so the learner jumps directly to a specific part of the media and plays only that section.
To add an action to play media:
- Select a button or other element on the stage or in the Layers panel.
- Click the Interaction tab and click Actions on the toolbar.
- Click Play Media.
- The Element Interactions properties panel opens.
- Drag the media element (audio or video) you want to play to the Targets list.
- Select the Trigger (When clicked, When double clicked, When right clicked, When mouse rolls over, When mouse rolls off, When trigger element shows, When trigger element hides).
- Enter a Time after which the media should start playing, if desired.
- Click Add a start time if you want to enter a start time within the media (for example, to start playing at 30 seconds instead of starting at the beginning of the media).
- Click Add a end time if you want to enter a end time within the media (for example, to stop playing at 45 seconds instead of stopping at the end of the media).
- Input any Conditions you wish to evaluate.
- Click Apply.
- Preview your action to check it from the Element Interactions panel before you click Done.
NOTE: You must upload media to Claro in order to control media playback using an action. You cannot embed media from an external streaming site and control playback.