问题
I've released several paths:
1) Recording video with https://caniuse.com/#feat=html-media-capture But it works only on iOS and cannot be customizable. I need to render a red frame over the video preview layer and limit video length to 30 seconds.
2) Recording with a WebRTC client placed on the server, but I can't find any software to do that. I've found kurento media server, but its client js utils library does not support Safari 11.
3) Recording with flash plugin. But it is not supported on iOS.
Can you help me to find some other ways?
回答1:
The MediaStream Recording API would be a good option but it's not implemented in Safari yet. There is an open ticket for this that you should comment on.
Another option while waiting for that is to use the Archiving API in TokBox/OpenTok. You can see a sample of it working here and documentation here. It works in Safari 11 if you opt into a Safari project. It will let you archive a video and store it in the cloud, eg. S3. You will then need to download it. There are also costs associated with this, you will need to sign up for a TokBox account.
(disclosure I work at TokBox 😀)
回答2:
MediaRecorder API is also another option but " Safari is currently not supporting MediaRecorder API by default, but you can enable them from Develop > Experimental Features > MediaRecorder"
来源:https://stackoverflow.com/questions/49003715/how-to-record-video-with-webcam-in-safari-on-ios-and-macos