Skip to content

shell: <video loop> on macOS - #17

Merged
andrevanzuydam merged 1 commit into
mainfrom
feature/device-shells-1
Sep 17, 2026
Merged

andrevanzuydam merged 1 commit into
mainfrom
feature/device-shells-1

Conversation

@andrevanzuydam

Copy link
Copy Markdown
Owner

The macOS <video> overlay honoured controls/autoplay/muted but not loop. A looping <video> now uses an AVQueuePlayer + AVPlayerLooper (declared as an external objcclass — not in FPC's AVFoundation binding), retained in GVideoLoopers and dropped on teardown.

Build-verified; compliance 219/219 (the shell change doesn't regress snapshots). The loop plays only in a real window — confirm live via tools/tina4pascal deploy macos.

🤖 Generated with Claude Code

The macOS <video> overlay honoured controls/autoplay/muted but not
`loop`. A looping <video> now builds an AVQueuePlayer driven by an
AVPlayerLooper (declared as an external objcclass — it isn't in FPC's
AVFoundation binding), replayed forever; the looper is retained in
GVideoLoopers (keyed by src) and dropped when the <video> is torn down,
else it deallocs and playback stops after one pass.

Build-verified and compliance 219/219 (the shell change doesn't regress
any snapshot); the loop plays only in a real window, so confirm live via
`tools/tina4pascal deploy macos`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@andrevanzuydam
andrevanzuydam merged commit 79b3907 into main Sep 17, 2026
@andrevanzuydam
andrevanzuydam deleted the feature/device-shells-1 branch September 17, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant