Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am trying to autostart the camera in the browser(chrome) using the below API

https://github.com/collab-project/videojs-record

The problem is (like shown in the demo), it shows a icon and on click of that it start the camera. But I want to start it by default as soon as screen opens. I tried .start() method also tried .retrySnapshot() but they did not worked. Any pointer will be helpful. Thanks !

https://collab-project.github.io/videojs-record/examples/video-only.html

Thanks mate. I tried to start auto record after device is ready. If you add player.record().start(); in the deviceReady event, record will start record automatically. Atakan Savaş Apr 20, 2022 at 20:58

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .