Autoplay music and videos #233

pull/237/head
Henrique Dias 2017-09-07 10:07:24 +01:00
parent 4d1b2cbb14
commit d555cc44a0
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
2 changed files with 2 additions and 2344 deletions

View File

@ -20,8 +20,8 @@
<div class="preview">
<img v-if="req.type == 'image'" :src="raw()">
<audio v-else-if="req.type == 'audio'" :src="raw()" controls></audio>
<video v-else-if="req.type == 'video'" :src="raw()" controls>
<audio v-else-if="req.type == 'audio'" :src="raw()" autoplay controls></audio>
<video v-else-if="req.type == 'video'" :src="raw()" autoplay controls>
Sorry, your browser doesn't support embedded videos,
but don't worry, you can <a :href="download()">download it</a>
and watch it with your favorite video player!

File diff suppressed because one or more lines are too long