Hide Video
Stop and remove a video from the screen
Description
'hide video <video_id> [with <animation>]'The hide video action stops and removes a video currently playing on the screen.
Action ID: Hide::Video
Reversible: Yes
Requires User Interaction: No
Parameters
video_id
string
The ID of the video to hide (same ID used in show video)
Examples
Basic Hide
Stop and remove a video immediately:
'hide video rain'Hide with Animation
Remove a video with a fade out effect:
Complete Example
Behavior
When hiding a video:
The video playback is stopped
Video resources are cleaned up to prevent memory leaks
If an animation is specified, it plays before removal
The element is removed from the DOM
Animation Behavior
When using an animation:
The video's
data-visibilityattribute is set toinvisibleThe animation plays
Once the animation ends, the video element is removed
Error Handling
If the video ID doesn't match any currently playing video, the action completes silently without error.
Related Actions
Show Video - Display a video
Hide Image - Remove an image
Hide Character - Remove a character sprite
Last updated
Was this helpful?