Hi I need to get the audio working on an chroma video (Alpha video and tap to pause) After searching the forum for solutions, I inserted some code from the Splash Screen project hoping the gesture? would resolve audio to start. After adding new splash asset, adding the first few lines of div code and adding splash-image after a-scene, the new splash screen is not coming up ? are ther elements i have not considered copying over? Or how is it possible to add an audio button, much thanks
Autoplay policies for videos with audio differ between browsers, such as Safari and Chrome. By default, Safari will only autoplay a video if it doesn’t have an audio track or if the video element includes the “muted” attribute. Playback will pause if the element gains an audio track or becomes unmuted without user interaction. You can find more information about Safari’s autoplay policies in the official Apple documentation.
For Chrome, autoplay with sound is allowed if the user has interacted with the domain (e.g., through a click or tap). More details about Chrome’s autoplay policy changes can be found in the Google Developers documentation.
If you’re looking for an example project that plays a video with sound when the user taps on an image target, you can check out 8th Wall’s Playground example.
Or specifically the logic that starts and stops the video via a user gesture
You can use this code to write a custom component for your project
This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.