Home  >  Q&A  >  body text

javascript - Use the web to record a video of about ten seconds, which is compatible with various browsers. Are there any methods to achieve this?

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.

滿天的星座滿天的星座2690 days ago915

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-06-26 11:00:42

    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

    reply
    0
  • 大家讲道理

    大家讲道理2017-06-26 11:00:42

    Just use H5, if it doesn’t support prompts, it’s better not to use flash if you don’t need it for compatibility

    reply
    0
  • Cancelreply