From e3bf4accf86a7951f03f328a72b76641a79ce4bf Mon Sep 17 00:00:00 2001 From: Ivan Borzenkov Date: Sun, 25 Feb 2024 00:03:57 +0300 Subject: [PATCH] for local files use default player --- src/app/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/app.js b/src/app/app.js index f20c269f6d..437e780d6a 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -705,10 +705,7 @@ var handleVideoFile = function (file) { localVideo.attributes ); - var tmpPlayer = App.Device.Collection.selected.attributes.id; - App.Device.Collection.setDevice('local'); App.vent.trigger('stream:ready', localVideo); // start stream - App.Device.Collection.setDevice(tmpPlayer); $('.eye-info-player, .maximize-icon #maxdllb').hide(); $('.vjs-load-progress').css('width', '100%'); @@ -760,6 +757,7 @@ window.ondrop = function (e) { } ); } else if (file != null && isVideo(file.name)) { + console.log(file); handleVideoFile(file); } else { var data = e.dataTransfer.getData('text/plain');