-
Notifications
You must be signed in to change notification settings - Fork 37
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
Update to Use Temasys/AdapterJS for getUserMedia (brings iOS + Safari compatibility) #172
Conversation
Since https://github.com/addyosmani/getUserMedia.js/ is not being being maintenanced continuously, this replaces it to use temasys adapterjs.
This updates getUserMedia to use adapterjs. - Remove old logics for addyosmani/getUserMedia.js - Add new implementation of AdapterJS (please refer to https://github.com/Temasys/AdapterJS for detailed doc)
Thanks for opening this pull request! |
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 looks fantastic. Tested on iOS Safari with version info:
phone()
iPhone
tablet()
-
mobile()
iPhone
os()
iOS
userAgent()
Safari
mobileGrade()
A
smaller side
375
_version
1.4.4 2019-09-21
is("iPhone")
true
is("iOS")
true
is("Safari")
true
is("WebKit")
true
versionStr("Mobile")
"15E148"
version("Mobile")
15.148
versionStr("Version")
"13.1.2"
version("Version")
13.12
versionStr("iPhone")
"13_7"
version("iPhone")
13.7
versionStr("Opera")
"13.1.2"
version("Opera")
13.12
versionStr("Opera Mobi")
"13.1.2"
version("Opera Mobi")
13.12
versionStr("Safari")
"13.1.2"
version("Safari")
13.12
versionStr("Webkit")
"605.1.15"
version("Webkit")
605.115
versionStr("iOS")
"13_7"
version("iOS")
13.7
I do note we can't flip the camera, but once we merge this perhaps we can address that in a follow-up PR or in #173. Thank you so much!
Congrats on merging your first pull request! 🙌🎉⚡️ |
Hello @jywarren I have gone through all the live demo episodes of https://plugin.temasys.com.sg/demo/ on Safari. It seems only the first frame gets captured. Please could you test it at your end. |
Ah, so it seems that this may be a temasys systemic issue?
…On Sun, Jul 31, 2022, 9:12 PM FORCHA ***@***.***> wrote:
Hello @jywarren <https://github.com/jywarren> I have gone through all the
live demo episodes of https://plugin.temasys.com.sg/demo/ On Safari. It
seems only the first frame gets captured. Please could you test it at your
end.
@chukohsin <https://github.com/chukohsin> please can you help me with
temasys resources/documents?
—
Reply to this email directly, view it on GitHub
<#172 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JYJWJO7OSOKN2LQ2CDVW4P67ANCNFSM4QPB6ULQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jywarren , sorry for the late response. Temasys works fine on both |
I have contacted the technical team in regards to this single frame limitation |
Oh whoa! Ok, so, perhaps we need to either look at another compatibility
library or try directly using the getUserMedia API. The API has stabilized
in recent years so a compatibility library may not be as necessary anymore.
…On Mon, Aug 1, 2022, 4:18 AM FORCHA ***@***.***> wrote:
I have contacted the technical team in regards to this limitation
—
Reply to this email directly, view it on GitHub
<#172 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JZWO2MER32HVHZWM6LVW6B35ANCNFSM4QPB6ULQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Description
Since addyosmani/getUserMedia.js is lack of maintenance. This replaces it with Temasys/AdapterJS, which provides polyfills and cross-browser helpers for WebRTC. It wraps around the native APIs in Chrome, Opera and Firefox and provides support for WebRTC in Internet Explorer and Safari on Mac and Windows through the available Temasys Browser Plugins.
fixes #87 (link added by @jywarren)
Files Changed
examples/capture/getUserMedia.js
: this helper function includes the required initialization for AdapterJS and callgetUserMedia
with default constraints.examples/capture/capture.js
: remove old options customized foraddyosmani/getUserMedia.js
. Move success callback togetUserMedia.js
helper function.examples/capture/getRow.js
: Remove conditional statements customized foraddyosmani/getUserMedia.js
flash fallback.package.json
: remove"getusermedia-js": "~1.0.0"
examples/capture/index.html
: add AdapterJSNotes
This has been tested on Chrome, Firefox and Safari.
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
Please alert developers on plots-dev@googlegroups.com when your request is ready or if you need assistance.
Thanks!