Skip to content

diff for #419#422

Open
jywarren wants to merge 1 commit intomainfrom
diff-forcha
Open

diff for #419#422
jywarren wants to merge 1 commit intomainfrom
diff-forcha

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

};
}, {}],
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.

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() {

$('#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:

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:

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