Plays all .mpg video files found in an assets/ subfolder sequentially. A keypress advances to the next video.
This example demonstrates video playback using the goxpyriment framework and can serve as a template for video-based tasks.
sudo apt install libsdl3-dev on Ubuntu/Debian)assets/*.mpg# Fullscreen, participant 1
go run main.go -s 1
# Windowed (development / testing)
go run main.go -s 1 -d
| Flag | Default | Description |
|---|---|---|
-s |
0 |
Participant ID (integer) |
-d |
off | Development mode: windowed 1024×768 |
Press any key to advance to the next video. Press Escape or Q to quit.