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