Overview
The Play Video and Stop Video actions allow you to embed video files into your 3D scene. Videos are displayed on a virtual screen or surface within the scene environment, making them part of the immersive experience rather than overlays on the interface. Multiple videos can play simultaneously if placed on different surfaces, and you can control playback independently for each.Play Video
When to Use
- Instructional demonstrations: show a video of a process or procedure within the scene
- Safety briefings: display compliance or safety videos embedded in the environment
- Expert walkthroughs: show an expert demonstrating a task
- Equipment tutorials: play manufacturer videos or instruction videos as part of the training
- Context-building: show background or historical videos relevant to the training
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Video Asset | string | Yes | Select a video file from your asset library. |
| Autoplay | boolean | No | If true, the video starts playing immediately. Default is false. |
| Loop | boolean | No | If true, the video repeats after finishing. Default is false. |
| Volume | number | No | Volume level from 0 to 1 (0 = silent, 1 = full volume). Default is 1. |
| Muted | boolean | No | If true, audio is muted regardless of volume setting. Default is false. |
| Position | X, Y, Z | No | Position of the video screen in 3D space (in meters). |
| Rotation | X, Y, Z | No | Rotation of the video screen (in degrees). |
| Scale | X, Y, Z | No | Size of the video screen. Default is typically (1, 1, 1). |
Key Behavior
- Scene-embedded: The video appears as part of the 3D environment, not as an overlay.
- Spatial audio: Video audio is positional and can be heard from the learner’s position in the scene.
- Fire and forget: Play Video starts playback; subsequent actions don’t wait unless you add a Delay.
- Multiple videos: You can play different videos on different surfaces simultaneously.
Stop Video
When to Use
- Cleanup: stop video playback when exiting a state
- Interrupt: stop a video if learner chooses a different action
- Resource management: stop videos to free resources for other interactions
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Target Action ID | string | No | (Optional) Specify the Play Video action ID to stop only that video. If omitted, all playing videos stop. |
Key Behavior
- Omnibus or selective: Stop a specific video by action ID, or stop all videos if left empty.
- Safe to call: Calling Stop Video when no video is playing has no effect.
Practical Examples
Instructional Video with Narration
Scenario: A training state displays a video demonstration of equipment setup. The video should autoplay, and the learner should wait for it to finish before proceeding.In a state’s
onEntry action list:- Play Video:
- Video Asset:
equipment_setup_demo.mp4 - Autoplay:
true - Loop:
false - Position: (0, 2, 0) — positioned at eye level in the scene
- Rotation: (0, 0, 0)
- Video Asset:
- Delay:
90000(90 seconds to match video length) - Set Variable:
videoWatched = true
Looping Instructional Video
Scenario: A video explains a procedure. It loops so learners can watch multiple times if needed.In a state’s
onEntry:- Play Video:
- Video Asset:
procedure_overview.mp4 - Autoplay:
true - Loop:
true - Volume:
0.8
- Video Asset:
Multiple Videos on Different Screens
Scenario: A warehouse training shows two monitors: one displays a safety briefing video, the other shows a live equipment feed.In a state’s
onEntry, add two separate Play Video actions:- Play Video #1:
- Video Asset:
safety_briefing.mp4 - Position: (-2, 2, 0) — left screen
- Autoplay:
true
- Video Asset:
- Play Video #2:
- Video Asset:
equipment_feed.mp4 - Position: (2, 2, 0) — right screen
- Autoplay:
true - Loop:
true
- Video Asset:
Stop Video on Learner Action
Scenario: A video plays, but if the learner clicks “skip,” the video stops and the training moves forward.In the state’s
onEntry:- Play Video: Video Asset:
explanation.mp4(assigned action ID:explanation_video)
Create a transition triggered by a “Skip Video” button:
- Stop Video: Target Action ID:
explanation_video - Transition to next state
Videos stream from your asset library. Ensure your video files are optimized for the target playback environment (resolution, bitrate, codec). Large or poorly compressed videos may cause performance issues.

