The reason I wrote this article is mainly because the team leader raised a new requirement - using a browser to call the computer's camera to realize the function of taking photos in real time. I searched a lot of information online, but for one reason or another, I finally chose to use the flash plugin to call the PC's camera. Of course, this requirement is based on the B/S architecture, so I was thinking about how to embed it into the front-end HTML page.
Off topicOf course, packaging has not been considered here. It mainly aims to achieve the purpose of implementation, and then abstracts it according to the business and encapsulate it into a general component. OK, don't say much nonsense, look at the key points.
Embed plug-in Use object and embed tagsCode display
Copy the code