-
Notifications
You must be signed in to change notification settings - Fork 165
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
Integrate latest camera selection API from getUserMedia #39
Comments
Noting this was done in spectral-workbench.js here -- using Temasys - publiclab/spectral-workbench.js#173 Also noting: https://github.com/webrtcHacks/WebRTC-Camera-Resolution |
This could be integrated with the initial work of this PR where we try to dynamically set the pixel resolution/size: #21 |
Hello @jywarren, I am an outreachy applicant. I would like to work on this issue. |
Hello @Somya-Singhal this will be part of the work of the Outreachy project itself, so we aren't quite ready to begin coding. However, if you would like to help research where changes will have to be made, or add other contextual information here, to prepare, that would be appreciated! Thank you!! |
I have gone through the link you provided above and found that we could some more features like:
If we want to add both, front as well as rear camera for mobile devices, we can also use this: |
The integration of Temasys on infragram has been a success . Now iOs users can perform vegetation analysis over Webcam stream. Problem: only The first input frame is captured for both live stream and Prerecorded video on Safari (iOS) Hello @jywarren , @TildaDares , @cesswairimu , @stephaniequintana and @RaviAnand111 please help me test the webcam and local video behavior at your end https://forchapeatl.github.io/infragram/indexT.html# VID-20220801-WA0002.mp4 |
Hey @Forchapeatl , I tried the link and its working great on chrome in Manjaro OS, both the image and live video. |
@Forchapeatl - I'm on a MacBook Air (macOS Catalina) and both uploading a video and connecting to the webcam are working great on Chrome and Firefox, but neither work on Safari. For the webcam on Safari, I get a black screen after clicking the webcam button and when I try to upload a video (mp4) the selection is disabled in the file list and thus I am unable to select it. Perhaps this is a simple setting on my end(?) - Please let me know if you would like me to try another browser or video format. |
Hi @stephaniequintana if you don't first try to connect to a webcam, does video upload work normally in Safari? That is, is the attempt to connect to a webcam interfering with video upload, or does it not work at all in Safari? Thank you! |
@jywarren, I believe it's due to a bug in Safari that hasn't been addressed. I found a short discussion on stack overflow (from 2014!!) about it - the suggested "solution" does not work for me - and am hoping it's isolated to macOS Catalina. I didn't dive deeper than this, though. The webcam in not causing interference. This happens whenever I try to upload a video to the site in Safari. |
@jywarren , @stephaniequintana and @RaviAnand111 , I appreciate the feedbacks. Thank you! |
Hello @jywarren . Existing Limitations
References Request Please may we use |
I think this sounds great and if it works in safari iOS I'm super happy. I don't think it has to toggle back and forth. People can reload. Let's do this! Is it ready to merge? I think it's interesting to know if it works on Firefox in Arch Linux but if it doesn't, let's try thinking on that in a separate issue/pr. Thanks all! |
@jywarren Please I am abit confused. |
Regarding this shall we open it in a new issue? Thank you? |
Oh I'm sorry, I thought p5.js uses getusermedia doesn't it? If you can do
it using getusermedia just like p5js implements it I think it will work
well, p5js is more an example of how to use it!
…On Thu, Aug 4, 2022, 6:32 PM FORCHA ***@***.***> wrote:
@jywarren <https://github.com/jywarren> Please I am abit confused.
P5.js or getUserMedia ? They both work on Safari
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J4HZN5IX7V6BOYETMLVXRAIRANCNFSM4GNCIDSQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jywarren It seems all libraries (Temasys, P5.js and getUserMedia) work fine on safari problem is Safari doesn't recognize Lines 41 to 46 in f40efda
@jywarren, I am sorry for the whole confusion. I just discovered this bug/malfunction now. Thank you I think |
Safari doesn't recognize |
Oh whoa, really! Wild. It's listed ok here, it's a pretty fundamental JavaScript feature... |
But is it only safari iOS 6 then? Does that happen to be the version you're testing with? |
Maybe if it's just the one ios version that's older, we can live with it? |
Yes. I works on chrome IOS smoothly. But on safari nothing happens after capturing the first frame. Please have a look here https://forchapeatl.github.io/infragram/indexs.html |
I don’t know how we could address it, but opening an issue is a good place to document that Safari on MacOS Catalina does not support video upload. We can also use it as a place to collect info on other Mac operating systems…(although my limited research leads me to believe it is isolated to Catalina) |
@stephaniequintana Please could you test this https://forchapeatl.github.io/infragram/indexs.html . Just the webcam feature on your MacOS . please |
edit below... |
@stephaniequintana , Please,please test on all browsers currently existing on your MacOS. Please |
It doesn't work on my Phone Safari version 15.5. PLease could you try it on your phone. Sorry for the trouble. |
@Forchapeatl - No trouble at all, I'm glad I can help... |
Thank you so much @stephaniequintana |
Is Safari the new Internet Explorer? 😆 |
Steaming works fine on Safari but setInterval() is problematic VIDEO-2022-08-05-02-05-11.online-video-cutter.com.mp4We have an issue with the @jywarren should I prepare a PR for the good steaming functionality on safari but open an issue on |
Yes, let's just move ahead and open a separate issue for the Safari iOS thing. @Forchapeatl would you mind opening it? We may also be able to put a notice that it works in iOS Chrome, so people can still use it.
I think we'd better open a separate issue for this since it's not iOS, just so the two don't get confused with one another. @stephaniequintana would you mind? Thanks, both of you! |
But is it ios 6 only? Thanks for looking into it so carefully!!
…On Thu, Aug 4, 2022, 8:33 PM FORCHA ***@***.***> wrote:
@stephaniequintana <https://github.com/stephaniequintana> Please could
you test this https://forchapeatl.github.io/infragram/indexs.html . Just
the webcam feature on your MacOS . please
—
Reply to this email directly, view it on GitHub
<#39 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J2Q4BU2PNTRGUMLQKDVXROMFANCNFSM4GNCIDSQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jywarren hey Jeffery, I would love to contribute to this issue. |
Potentially using a new getUserMedia shim library?
https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia#Parameters
Maybe using https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices
Code for this is here:
infragram/src/io/camera.js
Lines 30 to 41 in f6f7919
We can apparently also specify different resolutions!
Let's do both!
The text was updated successfully, but these errors were encountered: