Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit af40b5c

Browse files
committed
set video/webm for embedded video previews (bug 732237)
1 parent d9137b1 commit af40b5c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

media/js/devreg/devhub.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ function initUploadPreview() {
427427
$thumb.addClass('loading');
428428
if (file.type.indexOf('video') > -1) {
429429
$thumb.replaceWith(format(
430-
'<video controls class="preview-thumb loading" src="{0}"></video>',
431-
file.dataURL));
430+
'<video controls class="preview-thumb loading" src="{0}" '
431+
'type="video/webm"></video>', file.dataURL));
432432
} else {
433433
$thumb.css('background-image', 'url(' + file.dataURL + ')');
434434
}

media/js/mkt/lightbox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$previews = $('.previews'),
88
current, $strip,
99
lbImage = template('<img id="preview{0}" src="{1}">'),
10-
lbVideo = template('<video id="preview{0}" src="{1}" controls></video>');
10+
lbVideo = template('<video id="preview{0}" src="{1}" controls '
11+
'type="video/webm"></video>');
1112
if (!$lightbox.length) return;
1213
function showLightbox() {
1314
$lightbox.show();

0 commit comments

Comments
 (0)