use html video tag to preview videos for public shares
This commit is contained in:
parent
abe408e934
commit
285d328ef1
|
@ -28,7 +28,13 @@
|
||||||
<div id="imgframe">
|
<div id="imgframe">
|
||||||
<img src="<?php p($_['downloadURL']); ?>" />
|
<img src="<?php p($_['downloadURL']); ?>" />
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php elseif (substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'video'): ?>
|
||||||
|
<div id="imgframe">
|
||||||
|
<video tabindex="0" controls="" autoplay="">
|
||||||
|
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
|
||||||
|
</video>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
<ul id="noPreview">
|
<ul id="noPreview">
|
||||||
<li class="error">
|
<li class="error">
|
||||||
<?php p($l->t('No preview available for').' '.$_['fileTarget']); ?><br />
|
<?php p($l->t('No preview available for').' '.$_['fileTarget']); ?><br />
|
||||||
|
@ -38,6 +44,7 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> –
|
<footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> –
|
||||||
<?php p($l->t('web services under your control')); ?></p></footer>
|
<?php p($l->t('web services under your control')); ?></p></footer>
|
||||||
|
|
Loading…
Reference in New Issue