We are currently using webcam.js to implement the camera function, which is compatible with various browsers. Currently, there are new requirements and recording is required. However, I looked at the github project address and it seems that video recording is not supported. What methods are available? Do it?
h5’s api is definitely not working, it only supports Google and Firefox.
The idea of graceful downgrade is to determine whether the browser supports H5. If it supports H5, use H5. If it does not support it, use Flash. Use Flash to record the video in the web page, save the recorded video locally, and then upload it to the server. , are not supported, the only option is to allow users to install the flash plug-in, which is similar to the browser video playback process
Just use H5, if it doesn’t support prompts, it’s better not to use flash if you don’t need it for compatibility