Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add option to disable video auto play#1936

Merged
dessalines merged 3 commits into
LemmyNet:mainfrom
MV-GH:option-disable-video-play
Sep 1, 2025
Merged

Add option to disable video auto play#1936
dessalines merged 3 commits into
LemmyNet:mainfrom
MV-GH:option-disable-video-play

Conversation

@MV-GH

@MV-GH MV-GH commented Aug 30, 2025

Copy link
Copy Markdown
Collaborator

Most work was propdrilling that setting.

I ve been thinking about using compositionprovider to push the settings down, and only pass by arg in the relevant composables.

But that would be a lot of refactor work to setup initially and I don't know how you feel about it.

studio64_HawxxZ3ilO.mp4

@MV-GH MV-GH requested a review from dessalines as a code owner August 30, 2025 23:53
when {
videoPost && expandedImage -> {
videoPost && expandedImage && !disableVideoAutoplay -> {
PostTitleAndVideoLink(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be internal to that composable? This makes it seem like you're also hiding the post title and video, rather than just not playing the video.

It should probably display a frame, and just not autoplay, if that's possible.

@dessalines

dessalines commented Aug 31, 2025

Copy link
Copy Markdown
Member

The prop drilling is annoying I agree, but I much prefer it any obfuscated param injection methods, so ya I'd like to keep all the explicit props as they are.

I def would be willing to consider just passing the entire appsettings object to all the composables that need it tho (as a separate PR). Then at least we wouldn't have to define a ton of things. That also has drawbacks tho, like not being able to easily set up previews, and not being clear about what specifically the component needs.

@MV-GH MV-GH mentioned this pull request Sep 1, 2025
3 tasks

@dessalines dessalines left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dessalines dessalines merged commit 9a00524 into LemmyNet:main Sep 1, 2025
1 check passed
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.

2 participants