From: Mrnt Date: Wed, 14 Mar 2018 01:04:54 +0000 (-0700) Subject: Merge remote-tracking branch 'upstream/dev' into html5-video-playback X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=46b99410155e6edff5f166831b797717b9ff8e37;p=motioneye-debian Merge remote-tracking branch 'upstream/dev' into html5-video-playback - fix conflicts - use js video playback from upstream/dev but try to preload video to better support of remote cameras - some css tweaks --- 46b99410155e6edff5f166831b797717b9ff8e37 diff --cc motioneye/mediafiles.py index 89d88f8,64c035c..fc548cc --- a/motioneye/mediafiles.py +++ b/motioneye/mediafiles.py @@@ -388,7 -388,7 +389,7 @@@ def list_media(camera_config, media_typ pipe.send({ 'path': path, - 'mimeType': mimetypes.guess_type(path)[0] or 'video/mpeg', - 'mimeType': mimetypes.guess_type(path)[0], ++ 'mimeType': mimetypes.guess_type(path)[0] if mimetypes.guess_type(path)[0] is not None else 'video/mpeg', 'momentStr': utils.pretty_date_time(datetime.datetime.fromtimestamp(timestamp)), 'momentStrShort': utils.pretty_date_time(datetime.datetime.fromtimestamp(timestamp), short=True), 'sizeStr': utils.pretty_size(size), diff --cc motioneye/static/css/main.css index f912b9e,ca1a695..04d472a --- a/motioneye/static/css/main.css +++ b/motioneye/static/css/main.css @@@ -766,12 -766,11 +766,12 @@@ div.picture-dialog-content } div.picture-dialog-prev-arrow, - div.picture-dialog-next-arrow { + div.picture-dialog-next-arrow, + div.picture-dialog-play { position: absolute; - top: 45%; + top: 50%; + margin-top: -1.5em; background-color: rgba(0, 0, 0, 0.6); - background-image: url(../img/arrows.svg); background-size: cover; width: 3em; height: 3em; diff --cc motioneye/static/js/main.js index 2341aa9,6f706b2..d1d5a3f --- a/motioneye/static/js/main.js +++ b/motioneye/static/js/main.js @@@ -3450,52 -3450,47 +3450,48 @@@ function runLoginDialog(retry) function runPictureDialog(entries, pos, mediaType) { var content = $('
'); - var video = videoEl = videoLoader = vProgressImg = null; + var img = $(''); - - if (mediaType == 'movie') { - video = $('