Demo HTML page (with recorder support)

Stanag2WebRTC includes a comprehensive sample for playback and recording, featuring custom buttons and a message overlay. You can find it in the /web/demorecorder directory. The player handles stream timeouts and re-connection to the server. The sample demonstrates how you can display one or more players on the same page.
You can access the sample at /demorecorder, for example 'http://localhost:4000/demorecorder'

Demo recorder

Please note the following:
By default, the HTML, JS, and CSS files are hosted on the HTTP server provided by the Stanag2WebRtc process. In this case, you can use the 'http://' + window.location.host URL. If you need to host your code elsewhere, you can use the URL of the Stanag2WebRtc, such as 'http://localhost:4000'. Stanag2WebRtc supports CORS, so this approach will work.

Recorder

The sample replaces the standard HTML5 buttons of the video element with custom buttons. It's important to note that the buttons will only be visible if the recording option is enabled.
More on the recorder.