Skip to content

Commit 3829e7a

Browse files
committed
try fix some Safari issues
Safari on iPhone SE puts video and camera in full screen mode. Very unhelpful. Let's see if this fixes it.
1 parent 7205d61 commit 3829e7a

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

bouncy_frontend/src/lib/components/editor/VideoToPose.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
bind:videoWidth={videoSrcWidth}
118118
bind:videoHeight={videoSrcHeight}
119119
playsinline
120+
webkit-playsinline
120121
controls
121122
></video>
122123
<div>

bouncy_frontend/src/lib/components/record/Camera.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@
105105
bind:this={videoElement}
106106
class:hidden={!cameraOn}
107107
style="opacity: {opacity}"
108+
playsinline
109+
webkit-playsinline
108110
></video>
109111

110112
<style>

bouncy_frontend/src/lib/components/review/VideoReview.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ once per 250ms. -->
255255
bind:videoHeight={videoSrcHeight}
256256
src={reviewVideoSrc}
257257
playsinline
258+
webkit-playsinline
258259
style="max-width: 100%"
259260
></video>
260261
{#if keypointSkeleton && displayVideoOverlay}

bouncy_frontend/src/lib/components/ui/Video.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
videoLoading = false;
3333
}}
3434
preload="auto"
35+
playsinline
36+
webkit-playsinline
3537
>
3638
<source
3739
src={path}

bouncy_frontend/src/routes/dev/+page.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
bind:videoWidth={videoSrcWidth}
133133
bind:videoHeight={videoSrcHeight}
134134
playsinline
135+
webkit-playsinline
135136
controls
136137
></video>
137138
<div>

0 commit comments

Comments
 (0)