The most important part of the application is here: // src/RecordView. The main app is simple, it only includes one component. The react-media-recorder is ready to use the component that will help us record the video stream from a laptop camera. This will solve the issue of accessing camera/microphone within iframe using a different domain. Our React application has a button ‘Click to fix permissions’, which will add a proper attribute to iframe. Solution preview Video Recording with preview The problem is not with your if statement. After stopping, the recorded playback will be played. So I have this code: and the localhost site loaded in the iframe just fine. An
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |