Comments (19)
I think the problem is with MediaSource
.
Apparently this is supported on iPad but not iPhone: caniuse.com/?search=mediasource.
Depending on what you want to do, you may not need MediaSource
at all.
There's a WebKit MediaRecorder example here: webkit.org/blog/11353/mediarecorder-api.
from simpl.
ios 14.6 with latest browsers as of today. And in settings I allowed access to camera by these browsers.
from simpl.
sorry @samdutton , I was meaning the https://github.com/samdutton/simpl/tree/gh-pages/mediarecorder .
It seems that on PC the camera permission is required upfront, whereas on mobile nothing happens and clicking the start button does nothing.
I checked out that other samples, such as the one where we can pick the camera and microphone, or setting the resolution work on mobile. So, perhaps the bug comes from the initial load.
from simpl.
Thanks for the heads-up.
This commit fixes the problem (for me on Safari 14.11 on Mac at least).
Does simpl.info/mr work for you now? (You might need to clear caches.)
from simpl.
Here I am back
Not yet unfortunately! I do not even see the alert you added.
Tested on chrome and safari incognito modes :)
from simpl.
@samdutton , I made some further test. The following doe not work neither on mobile https://webrtc.github.io/samples/src/content/getusermedia/record/
I get the error
navigator.getUserMedia error:OverConstrainedError: InvalidConstraint
I came to this link because I read your article
https://developers.google.com/web/updates/2016/01/mediarecorder
I would really appreciate any guidance on the matter as I need to implement this on a web app (client-side) to allow a user to record a video at SD resolution (480p) and be able to respond in the UI in case of errors.
from simpl.
Not sure why this isn't updating for you on simpl.info/mr. Did you try clearing caches?
The main change is to remove the options argument from the MediaRecorder constructor call. Does this work for you if you run the new code locally?
from simpl.
Further info:
https://simpl.info/getusermedia/constraints/ this one works if I click twice on the resolution button (example VGA). If I click once, I get a prompt to allow for the camera, and accepting gives a black image in the html. Clicking a second time on the resoulation button brings in the camera full screen.
This one https://simpl.info/getusermedia/sources/ , is fantastic!!! So there is something in between the different codes which make it work or not??
from simpl.
@samdutton , I cleared the browser settings and in incognito mode. Unfortunatly on the phone it is hard to debug. On pc it always worked.
from simpl.
I think the issue comes upon the first load of the page, but I am not sure yet.
from simpl.
Removing the options argument from the MediaRecorder
constructor fixed the issue for me on simpl.info/mr in Safari (on Mac at least — I don't have an iPhone with me). Does this work on your site?
At one point I also noticed a problem with MediaSource
using BrowserStack with an iPhone, but I haven't been able to reproduce that.
from simpl.
On ipad it works, but not on iphone SE (bought in 2019 or so).
I checked it out on
Safari
Chrome
Edge
Firefox mobile
Firefox Focus
Opera
The desktop version asks for permisison on load, but the phone just ignores it and hitting start shows nothing.
I will go into the code to see if it can be fixed. I have hope because the other examples you provide (links above) work well.
But my main concern is to find a universal way to do it because i need to rely on this API in production. Any chance this API is stable as of today?
I keep you posted on that
from simpl.
Interestingly, this one https://simpl.info/getusermedia/sources/ sends me 3 popups:
- Allow microphone access
- Allow camera access
- Allow microphone and camera access
Perhaps the MR code is not messing up with permissions. I will print out errors in a p tag, I should be able to get something
from simpl.
Ok thank you for the info that might be it.
I need to offer users to record a video on at 480p and be able to preview results and then upload it to our servers. Would that make it without mediasource?
I need the flow to be consistent throughout browsers and os’s
from simpl.
The choice of 480p is to reduce memory and upload size. If i use the input field method, that will open their camera app, which means they can record in hd or higher, which i would need to avoid
from simpl.
But mediasource seems supported on other browsers on mobile, whereas the code is mot working on all browsers on iphone
from simpl.
from simpl.
You mean on safari iphone? Otherwise i am confused. I have the major browsers on my iphone and the MD sample works on none. But the caniuse points to safari ios as partial support, so i guess mediasource should be ok on chrome edge and firefox on iphone. Agree?
from simpl.
from simpl.
Related Issues (20)
- alpha compatibility of webm files on mobile devices HOT 1
- set recorded video resolution HOT 1
- i'm find it not work on my anroid mobile default browser HOT 5
- getUserMedia example on iOS HOT 4
- Not working in safari 12.1.1 HOT 6
- how to store the image to the folder - framework codeigniter HOT 3
- How to set default Camera2 0 ?
- Read Qr
- New To This HOT 1
- record all participant HOT 1
- a simple webpage for joining a sports activity HOT 5
- Note object.observe removal HOT 1
- websocket.org cannot connect HOT 1
- Blob Size getUserMedia HOT 4
- How is this suppose to communicate to another web browser page? HOT 4
- timeslice must be multiples of 60 HOT 1
- Feature Request: Load overlay image HOT 2
- Can i add Restaurant landing page using REACT
- BUG: "input names" demo webpage URL source link points to "input TYPES" source folder on GH (instead of "input NAMES")
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simpl.