Skip to content

Add media loading and video autoplay settings#219

Merged
barrydeen merged 1 commit intomainfrom
feat/media-settings
Mar 11, 2026
Merged

Add media loading and video autoplay settings#219
barrydeen merged 1 commit intomainfrom
feat/media-settings

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Adds two new toggles under a "Media" section in Interface Settings: Auto-load media and Video autoplay
  • When auto-load is off, images and videos show a styled tap-to-load placeholder instead of downloading automatically
  • When video autoplay is off, videos load but don't auto-play when scrolling into view
  • Uses CompositionLocal (LocalMediaSettings) to provide settings down the composable tree, avoiding parameter threading through every call site
  • Both default to true, preserving current behavior

Test plan

  • Toggle "Auto-load media" off — images/videos in notes show placeholder with icon, tap to load
  • Toggle "Video autoplay" off — videos load but don't play until user taps play
  • Both toggles on — current behavior, no regression
  • Settings persist across app restart

Add two new toggles in Interface Settings:
- Auto-load media: when off, images/videos show a tap-to-load placeholder
- Video autoplay: when off, videos load but don't auto-play on scroll

Uses CompositionLocal to provide settings down the tree without
threading parameters through every call site.
@barrydeen barrydeen force-pushed the feat/media-settings branch from 81ee2fe to 2649104 Compare March 11, 2026 18:11
@barrydeen barrydeen merged commit 741c3b1 into main Mar 11, 2026
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