fix: remove type="*" from videos (#1593)
This commit is contained in:
parent
c13b2df6c5
commit
01b0c43f0d
|
@ -14,7 +14,6 @@
|
|||
loop
|
||||
webkit-playsinline
|
||||
playsinline
|
||||
type="*"
|
||||
/>
|
||||
</div>
|
||||
<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'}
|
||||
<video
|
||||
class="media-fit"
|
||||
aria-label={description}
|
||||
src={url}
|
||||
type="*"
|
||||
{poster}
|
||||
controls
|
||||
{intrinsicsize}
|
||||
|
@ -17,7 +14,6 @@
|
|||
class="audio-player"
|
||||
aria-label={description}
|
||||
src={url}
|
||||
type="*"
|
||||
controls
|
||||
ref:player
|
||||
/>
|
||||
|
@ -27,7 +23,6 @@
|
|||
class="media-fit"
|
||||
aria-label={description}
|
||||
src={url}
|
||||
type="*"
|
||||
{poster}
|
||||
autoplay
|
||||
muted
|
||||
|
|
Loading…
Reference in New Issue