Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

diff for #419 #422

wants to merge 1 commit into from

Conversation

jywarren
Copy link
Member

Trying to show a diff for @Forchapeatl from #419

@gitpod-io
Copy link

gitpod-io bot commented Jun 21, 2022

@@ -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) {
Copy link
Member Author

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){
Copy link
Member Author

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:

$("#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;
});

Copy link
Member Author

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:

@@ -1572,6 +1568,29 @@ function _slicedToArray(arr, i) { if (Array.isArray(arr)) { return arr; } else i
setGrid($("#overlay-slider").val());
});

//Start video controls
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can go here:

@@ -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);
Copy link
Member Author

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");
Copy link
Member Author

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');
Copy link
Member Author

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:

webRtcOptions.videoEl.setAttribute('playsinline', 'playsinline');

function success(stream) {
var video;
//localStream = this.stream;
Copy link
Member Author

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:

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
Copy link
Member Author

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?

module.exports = function Camera(options) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant