uikit icon indicating copy to clipboard operation
uikit copied to clipboard

Safari (visionOS) Video Autoplay / OnClick

Open arvinkx opened this issue 1 year ago • 2 comments

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 avatar Sep 27 '24 07:09 arvinkx

Same issue here.

supermoos avatar Dec 03 '24 09:12 supermoos

getting my vision os on sunday and will check then :)

bbohlender avatar Sep 26 '25 16:09 bbohlender