Skip to content

Commit

Permalink
for local files use default player
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan1986 committed Feb 24, 2024
1 parent 937aa81 commit e3bf4ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit e3bf4ac

Please sign in to comment.