How to access camera/webcamera inside electron app? The Next CEO of Stack OverflowHow to check empty/undefined/null string in JavaScript?How to get the children of the $(this) selector?How do I copy to the clipboard in JavaScript?How do you access the matched groups in a JavaScript regular expression?How do I redirect to another webpage?How do I return the response from an asynchronous call?How to access the correct `this` inside a callback?Access Native Resources in Electron AppHow to debug electron production binariesHow to access camera on iOS11 home screen web app?
Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?
Running a General Election and the European Elections together
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Newlines in BSD sed vs gsed
Can a Bladesinger Wizard use Bladesong with a Hand Crossbow?
I want to delete every two lines after 3rd lines in file contain very large number of lines :
How a 64-bit process virtual address space is divided in Linux?
Why does the flight controls check come before arming the autobrake on the A320?
Proper way to express "He disappeared them"
Powershell. How to parse gci Name?
How many extra stops do monopods offer for tele photographs?
Is a distribution that is normal, but highly skewed considered Gaussian?
Why does standard notation not preserve intervals (visually)
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Are police here, aren't itthey?
Find non-case sensitive string in a mixed list of elements?
INSERT to a table from a database to other (same SQL Server) using Dynamic SQL
What steps are necessary to read a Modern SSD in Medieval Europe?
Is it professional to write unrelated content in an almost-empty email?
Math-accent symbol over parentheses enclosing accented symbol (amsmath)
Why didn't Khan get resurrected in the Genesis Explosion?
If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?
Does soap repel water?
Why the difference in type-inference over the as-pattern in two similar function definitions?
How to access camera/webcamera inside electron app?
The Next CEO of Stack OverflowHow to check empty/undefined/null string in JavaScript?How to get the children of the $(this) selector?How do I copy to the clipboard in JavaScript?How do you access the matched groups in a JavaScript regular expression?How do I redirect to another webpage?How do I return the response from an asynchronous call?How to access the correct `this` inside a callback?Access Native Resources in Electron AppHow to debug electron production binariesHow to access camera on iOS11 home screen web app?
I have a web electron application and I want to implement camera in one of the pages.
The problem is that lately for security reasons webcam can only be accessed via 'https'. But in case of an Electron app where the application is served locally the scheme is different and therefore streaming fails. So my question is:
Is there any good solution to implement webcam inside electron?
If not, what solution other than webcam might work?
javascript electron hybrid-mobile-app angular-hybrid
add a comment |
I have a web electron application and I want to implement camera in one of the pages.
The problem is that lately for security reasons webcam can only be accessed via 'https'. But in case of an Electron app where the application is served locally the scheme is different and therefore streaming fails. So my question is:
Is there any good solution to implement webcam inside electron?
If not, what solution other than webcam might work?
javascript electron hybrid-mobile-app angular-hybrid
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19
add a comment |
I have a web electron application and I want to implement camera in one of the pages.
The problem is that lately for security reasons webcam can only be accessed via 'https'. But in case of an Electron app where the application is served locally the scheme is different and therefore streaming fails. So my question is:
Is there any good solution to implement webcam inside electron?
If not, what solution other than webcam might work?
javascript electron hybrid-mobile-app angular-hybrid
I have a web electron application and I want to implement camera in one of the pages.
The problem is that lately for security reasons webcam can only be accessed via 'https'. But in case of an Electron app where the application is served locally the scheme is different and therefore streaming fails. So my question is:
Is there any good solution to implement webcam inside electron?
If not, what solution other than webcam might work?
javascript electron hybrid-mobile-app angular-hybrid
javascript electron hybrid-mobile-app angular-hybrid
asked Mar 7 at 13:55
Herbi ShtiniHerbi Shtini
1,2111523
1,2111523
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19
add a comment |
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19
add a comment |
1 Answer
1
active
oldest
votes
I am answering my own question in case it helps someone else. In my case a had a custom scheme instead of the standard one which is file
but I was missing something. I found out I just had to add: secure: true
inside registerStandardSchemes
(version 4). That makes electron know that this scheme is secure and that is enough for webcam to work.
Look through electron documentation for more help
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045476%2fhow-to-access-camera-webcamera-inside-electron-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I am answering my own question in case it helps someone else. In my case a had a custom scheme instead of the standard one which is file
but I was missing something. I found out I just had to add: secure: true
inside registerStandardSchemes
(version 4). That makes electron know that this scheme is secure and that is enough for webcam to work.
Look through electron documentation for more help
add a comment |
I am answering my own question in case it helps someone else. In my case a had a custom scheme instead of the standard one which is file
but I was missing something. I found out I just had to add: secure: true
inside registerStandardSchemes
(version 4). That makes electron know that this scheme is secure and that is enough for webcam to work.
Look through electron documentation for more help
add a comment |
I am answering my own question in case it helps someone else. In my case a had a custom scheme instead of the standard one which is file
but I was missing something. I found out I just had to add: secure: true
inside registerStandardSchemes
(version 4). That makes electron know that this scheme is secure and that is enough for webcam to work.
Look through electron documentation for more help
I am answering my own question in case it helps someone else. In my case a had a custom scheme instead of the standard one which is file
but I was missing something. I found out I just had to add: secure: true
inside registerStandardSchemes
(version 4). That makes electron know that this scheme is secure and that is enough for webcam to work.
Look through electron documentation for more help
answered Mar 7 at 16:41
Herbi ShtiniHerbi Shtini
1,2111523
1,2111523
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55045476%2fhow-to-access-camera-webcamera-inside-electron-app%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
When I search for "electron camera," I get a lot of relevant results. (This and this are in the first five, for instance.) Did they not show up in your searching? Or was there some problem applying what they demonstrate?
– T.J. Crowder
Mar 7 at 14:02
@T.J.Crowder No actually I have seen a lot of them(both your links) but as I have mentioned the required secure connection has been introduced lately. It will work fine in development(localhost) but not on production and that is because of the protocol
– Herbi Shtini
Mar 7 at 14:05
If you're saying it used to work and now it doesn't because of a new requirement for HTTPS, I don't see a bug for that unless it's this one. If so, it's an open bug, not sure you'll be able to do much until it's fixed.
– T.J. Crowder
Mar 7 at 14:16
@T.J.Crowder actually I tested it and it will work with 'file' scheme but we have configured a custom scheme and with that is not working not sure what is missing though
– Herbi Shtini
Mar 7 at 14:19