bg videos remain muted on mobile, otherwise broken when navigating with swipe gestures
This commit is contained in:
1 parent
2fccb77405
commit
9ff27cfbc9
4 files changed
+9
-4
No files matched your search
@@ -117,7 +117,12 @@ export default class SlideContent {
|
||||
}
|
||||
|
||||
// Enable inline playback in mobile Safari
|
||||
//
|
||||
// Mute is required for video to play when using
|
||||
// swipe gestures to navigate since they don't
|
||||
// count as direct user actions :'(
|
||||
if( isMobile ) {
|
||||
video.muted = true;
|
||||
video.setAttribute( 'playsinline', '' );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user