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

Safari (visionOS) Video Autoplay / OnClick #123

Open
arvinkx opened this issue Sep 27, 2024 · 0 comments
Open

Safari (visionOS) Video Autoplay / OnClick #123

arvinkx opened this issue Sep 27, 2024 · 0 comments

Comments

@arvinkx
Copy link

arvinkx commented Sep 27, 2024

I'm using useVideoTexture to load a video texture with audio - I have video player controls made with uikit and when I try to play the video unmuted, it will not playback in Safari on visionOS (due to Privacy issues). I get the error: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission. which generally occurs when trying to autoplay a video without "user interaction" as defined by Apple.

Should a uikit onClick on visionOS trigger this threshold of user interaction to allow playback of an unmuted video? Currently, the video plays back on other browsers (including in visionOS Safari using normal onclick events) but won't playback unmuted in R3F / uikit.

@arvinkx arvinkx changed the title Safari Video Autoplay / OnClick Safari (visionOS) Video Autoplay / OnClick Sep 27, 2024
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

No branches or pull requests

1 participant