fix: remove type="*" from videos (#1593)
This commit is contained in:
parent
c13b2df6c5
commit
01b0c43f0d
|
@ -14,7 +14,6 @@
|
||||||
loop
|
loop
|
||||||
webkit-playsinline
|
webkit-playsinline
|
||||||
playsinline
|
playsinline
|
||||||
type="*"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
<!-- iOS safari requires type="*" on video to play properly, don't ask me why
|
|
||||||
https://stackoverflow.com/a/28361053 -->
|
|
||||||
{#if type === 'video'}
|
{#if type === 'video'}
|
||||||
<video
|
<video
|
||||||
class="media-fit"
|
class="media-fit"
|
||||||
aria-label={description}
|
aria-label={description}
|
||||||
src={url}
|
src={url}
|
||||||
type="*"
|
|
||||||
{poster}
|
{poster}
|
||||||
controls
|
controls
|
||||||
{intrinsicsize}
|
{intrinsicsize}
|
||||||
|
@ -17,7 +14,6 @@
|
||||||
class="audio-player"
|
class="audio-player"
|
||||||
aria-label={description}
|
aria-label={description}
|
||||||
src={url}
|
src={url}
|
||||||
type="*"
|
|
||||||
controls
|
controls
|
||||||
ref:player
|
ref:player
|
||||||
/>
|
/>
|
||||||
|
@ -27,7 +23,6 @@
|
||||||
class="media-fit"
|
class="media-fit"
|
||||||
aria-label={description}
|
aria-label={description}
|
||||||
src={url}
|
src={url}
|
||||||
type="*"
|
|
||||||
{poster}
|
{poster}
|
||||||
autoplay
|
autoplay
|
||||||
muted
|
muted
|
||||||
|
|
Loading…
Reference in New Issue