Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some mobile browsers require playsInline to be set to true for the video #443

Conversation

mwyrzykowski
Copy link
Contributor

Some mobile browsers require playsInline to be set to true for the video to play with the rest of the content.

To avoid WebGPU samples testing differences between mobile and desktop browsers, set playsInline = true prior to playing the video.

@mwyrzykowski
Copy link
Contributor Author

cc @kainino0x @greggman @beaufortfrancois who recently modified this file, are you ok with this change?

@beaufortfrancois
Copy link
Collaborator

LGTM overall.
I found two results in https://github.com/search?q=repo%3Awebgpu%2Fwebgpu-samples%20createElement(%27video%27)&type=code but I think sample/videoUploading/video.ts is not used anymore

to play with the rest of the content.

To avoid WebGPU samples testing differences between mobile and desktop browsers,
set playsInline = true prior to playing the video.
@mwyrzykowski mwyrzykowski force-pushed the mike_w_set_plays_inline_for_mobile_browsers branch from 2b3c0f6 to 72de844 Compare September 10, 2024 16:16
@mwyrzykowski
Copy link
Contributor Author

LGTM overall. I found two results in https://github.com/search?q=repo%3Awebgpu%2Fwebgpu-samples%20createElement(%27video%27)&type=code but I think sample/videoUploading/video.ts is not used anymore

Sure let's update the other occurrence too even though I agree, it seems unused.

Copy link
Collaborator

@kainino0x kainino0x left a comment

Choose a reason for hiding this comment

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

LGTM. Doesn't look like we are using playsInline on CTS, we might want it there too?

@kainino0x kainino0x enabled auto-merge (squash) September 10, 2024 18:14
@kainino0x kainino0x merged commit 8065282 into webgpu:main Sep 10, 2024
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.

3 participants