fix: remove type="*" from videos (#1593)

This commit is contained in:
Nolan Lawson 2019-10-17 18:27:30 -07:00 committed by GitHub
parent c13b2df6c5
commit 01b0c43f0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -14,7 +14,6 @@
loop loop
webkit-playsinline webkit-playsinline
playsinline playsinline
type="*"
/> />
</div> </div>
<style> <style>

View File

@ -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