fix video controls

This commit is contained in:
ccd0 2014-04-06 08:36:31 -07:00
parent 52949b545e
commit 49d76b4177
3 changed files with 8 additions and 8 deletions

View File

@ -7705,15 +7705,15 @@
TrashQueue.remove(el);
} else {
el = post.file.fullImage = $.el((isVideo ? 'video' : 'img'), {
className: 'full-image',
src: src || post.file.URL
className: 'full-image'
});
if (isVideo) {
el.loop = true;
}
$.on(el, 'error', ImageExpand.error);
el.src = src || post.file.URL;
}
if (el.isVideo) {
if (isVideo) {
el.controls = Conf['Show Controls'];
}
position = el.controls ? thumb.parentNode : thumb;

View File

@ -7724,15 +7724,15 @@
TrashQueue.remove(el);
} else {
el = post.file.fullImage = $.el((isVideo ? 'video' : 'img'), {
className: 'full-image',
src: src || post.file.URL
className: 'full-image'
});
if (isVideo) {
el.loop = true;
}
$.on(el, 'error', ImageExpand.error);
el.src = src || post.file.URL;
}
if (el.isVideo) {
if (isVideo) {
el.controls = Conf['Show Controls'];
}
position = el.controls ? thumb.parentNode : thumb;

View File

@ -112,10 +112,10 @@ ImageExpand =
else
el = post.file.fullImage = $.el (if isVideo then 'video' else 'img'),
className: 'full-image'
src: src or post.file.URL
el.loop = true if isVideo
$.on el, 'error', ImageExpand.error
el.controls = Conf['Show Controls'] if el.isVideo
el.src = src or post.file.URL
el.controls = Conf['Show Controls'] if isVideo
position = if el.controls then thumb.parentNode else thumb
$.after position, el unless el is position.nextSibling
$.asap (-> isVideo or el.naturalHeight), ->