21. Pause, resume and stop
Create a separate Pause script record. It obtains the same embedded player and changes its paused flag:
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
var player := GetGUIElementProperty(
"video_lab", "briefing_video", "video_player", null
) as VideoStreamPlayer
if player == null or player.stream == null:
return false
player.paused = true
return trueFigure 20. The paused frame stays visible. Resume should continue the existing playback rather than restart it.
Assign this record to the Pause Button through run-visual-script and its script ID. A paused player can still report is_playing() as true; paused and stopped are different states.
