Sample program or recommended development approach for playback on a browser?

Good day,

We have a dev Milestone XProtect 2023 R3 and our web application (.NET 6) can successfully support live streams from Milestone (Open Network Bridge → RTSP → Conversion to WebRTC). We want to also support long playbacks of recorded video with audio, but we have been facing difficulties with our approach and we’re seeking your advice.

We have tried the Open Network Bridge approach by retrieving the /vod version of the RTSP url of a video stream, but it gives us the entire playback, and we’re not having much luck using the RTSP protocol to retrieve a set time. Past queries on this forum like this seem to not have a solution

We have also tried the Protocol Integration but it seems that the video and audio files are delivered separately and we have to stitch them back together. We failed on this part too and we’re not even sure if this is the right approach to retrieving a playback video with audio (see this forum link for more info)

Would your team have a sample program or at least a recommended development approach for us to support long video playbacks without any plugins on a thin client (browser) that includes audio support? Your help is greatly appreciated, thank you!

I think the audio might be explained here:

https://doc.developer.milestonesys.com/html/index.html?base=reference/protocols/genericbytedata.html&tree=tree_3.html

https://doc.developer.milestonesys.com/html/index.html?base=reference/protocols/audio_sub_formats.html&tree=tree_3.html

It might not explain how to use the audio in the web application but I hope it can help. Unfortunately there is no sample that shows handling the audio data.

I think another very good option is to use the Mobile Server and the Mobile SDK instead. I know there is an audio sample.

https://doc.developer.milestonesys.com/mipsdkmobile/