You need to fix a few problems before working properly with your code. I created a fork for your code, and I added some changes that you need to enable to record the WebRTC stream. The fork is here . Also, let me provide you some comments:
- The example you selected ("Hello World") cannot be stopped (it does not have a "Stop" button in the graphical interface). Therefore, you cannot stop recording. You should use a more advanced example with the "start" and "stop" buttons so that you can stop recording in order to access and view the saved media. You should probably better use the Magic Mirror Tutorial as a pointer, because it uses WebSockets for signaling and allows you to stop recording.
- You should avoid race conditions. In your code, you use the "recorderEndpoint" parameter, which has a race condition, because it is initialized in a callback and used in another callback, being both callbacks executed in parallel and having race conditions.
Edit: the example does have a stop button that, when clicked, releases the pipeline and thereby stops recording. Therefore, comment 1 is really not applicable.
lulop source share