fix ios live mode

This commit is contained in:
Warunee Tamkoo 2026-05-07 16:22:58 +07:00
parent 7ae3f0a557
commit 9efac056e9
2 changed files with 23 additions and 0 deletions

View file

@ -890,6 +890,8 @@ watch(
:resolution="{ width: photoWidth, height: photoHeight }" :resolution="{ width: photoWidth, height: photoHeight }"
ref="camera" ref="camera"
:autoplay="false" :autoplay="false"
:playsinline="true"
:facingMode="'user'"
:style="!img ? 'display: block' : 'display: none'" :style="!img ? 'display: block' : 'display: none'"
/> />
@ -1004,6 +1006,8 @@ watch(
}" }"
ref="camera" ref="camera"
:autoplay="false" :autoplay="false"
:playsinline="true"
:facingMode="'user'"
:style="!img ? 'display: block' : 'display: none'" :style="!img ? 'display: block' : 'display: none'"
/> />
@ -1513,6 +1517,15 @@ watch(
height: 100%; height: 100%;
} }
/* iOS-specific video fixes */
.card-container video,
.card-container-xs video {
width: 100%;
height: 100%;
object-fit: cover;
-webkit-object-fit: cover;
}
.bg-topOut { .bg-topOut {
background: rgb(39, 50, 56); background: rgb(39, 50, 56);
background: linear-gradient( background: linear-gradient(

View file

@ -335,6 +335,8 @@ onMounted(async () => {
:resolution="{ width: photoWidth, height: photoHeight }" :resolution="{ width: photoWidth, height: photoHeight }"
ref="camera" ref="camera"
:autoplay="false" :autoplay="false"
:playsinline="true"
:facingMode="'user'"
:style="!img ? 'display: block' : 'display: none'" :style="!img ? 'display: block' : 'display: none'"
/> />
@ -569,4 +571,12 @@ onMounted(async () => {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
/* iOS-specific video fixes */
.card-container video {
width: 100%;
height: 100%;
object-fit: cover;
-webkit-object-fit: cover;
}
</style> </style>