-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diff for #419 #422
base: main
Are you sure you want to change the base?
diff for #419 #422
Conversation
@@ -1679,6 +1699,49 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i | |||
}; | |||
}, {}], | |||
17: [function (require, module, exports) { | |||
module.exports = function Saving(options) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So here, I believe this whole section was actually removed in #268, so I think we can leave this out.
@@ -1546,6 +1503,11 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i | |||
return true; | |||
}); | |||
$("#webcam-activate").click(function () { | |||
if(isVideo){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines can go here:
Line 89 in 3f5f87a
$("#webcam-activate").click(function() { |
@@ -1554,6 +1516,40 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i | |||
$('#preset-modal').modal('show'); | |||
return true; | |||
}); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines can go here:
Line 98 in 3f5f87a
@@ -1572,6 +1568,29 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i | |||
setGrid($("#overlay-slider").val()); | |||
}); | |||
|
|||
//Start video controls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can go here:
Line 119 in 3f5f87a
@@ -1498,9 +1454,10 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i | |||
Presets = require('../ui/presets')(options, save_infragrammar_inputs); | |||
Analysis = require('../ui/analysis')(options, save_infragrammar_inputs); | |||
Colorize = require('../ui/colorize')(options); | |||
Saving = require('../ui/saving')(options); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed, as mentioned below it was removed in #268
clientX: 0, | ||
clientY: 0 | ||
})); | ||
event = document.createEvent("MouseEvents"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the above changes were made in #324 so we should leave it as it is with dispatchEvent. Thank you!
webRtcOptions.videoEl.setAttribute('autoplay', 'autoplay'); | ||
webRtcOptions.videoEl.setAttribute('playsinline', 'playsinline'); | ||
getUserMedia(webRtcOptions, success, deviceError); // iOS Safari 11 compatibility: https://github.com/webrtc/adapter/issues/685 | ||
webRtcOptions.videoEl.setAttribute('id', 'webCamVideoEl'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes can be made in this file:
Line 13 in 3f5f87a
webRtcOptions.videoEl.setAttribute('playsinline', 'playsinline'); |
function success(stream) { | ||
var video; | ||
//localStream = this.stream; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These too, just lower in the same file:
Line 79 in 3f5f87a
function success(stream) { |
@@ -1,14 +1,15 @@ | |||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | |||
isVideo = false,isCamera=false; // Turns off camera feed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these global variables? Could we set them actually inside of the camera.js
file instead, and use var
?
Line 3 in 3f5f87a
module.exports = function Camera(options) { |
Trying to show a diff for @Forchapeatl from #419