Resume continues; Stop ends the current play
For Resume, copy the Pause script and change only the final assignment:
player.paused = falseDo not add player.play() to a simple Resume command; that restarts the clip. Resume is meaningful after a pause, while Play / Restart is the appropriate command after a stop.
Here is a complete Stop script:
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:
return false
player.stop()
player.paused = false
return true| Button | Intended result |
|---|---|
| Play / Restart | Start again from the beginning. |
| Pause | Keep the current playback suspended. |
| Resume | Clear the pause without restarting. |
| Stop | End the current playback; use Play / Restart to begin again. |
Do not depend on Stop preserving a particular still frame or revealing the fallback poster. Use a separate Image if your design requires a specific stopped display.
