diff options
author | Björn Schießle <bjoern@schiessle.org> | 2013-03-20 02:27:53 -0700 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2013-03-20 02:27:53 -0700 |
commit | b91bcf5f60c22ae3920ffc7fd37b2797568df7e3 (patch) | |
tree | b9cee894a5b2427e2e91e6e9290c094ea66c0d44 /apps | |
parent | 63e3f978ab3b752cc2976d1452b5687b33a059c3 (diff) | |
parent | 285d328ef145010922773a0d05451a80759da788 (diff) | |
download | nextcloud-server-b91bcf5f60c22ae3920ffc7fd37b2797568df7e3.tar.gz nextcloud-server-b91bcf5f60c22ae3920ffc7fd37b2797568df7e3.zip |
Merge pull request #2324 from owncloud/html_video_tag
use html video tag to preview videos for public shares
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/templates/public.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 88692445ec3..88a4cc242ba 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -28,7 +28,13 @@ <div id="imgframe"> <img src="<?php p($_['downloadURL']); ?>" /> </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"> <li class="error"> <?php p($l->t('No preview available for').' '.$_['fileTarget']); ?><br /> @@ -37,6 +43,7 @@ /><?php p($l->t('Download'))?></a> </li> </ul> + <?php endif; ?> <?php endif; ?> </div> <footer><p class="info"><a href="http://owncloud.org/">ownCloud</a> – |