fix ios live mode
This commit is contained in:
parent
7ae3f0a557
commit
9efac056e9
2 changed files with 23 additions and 0 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue