Reading records on web app
CompletedHello,
I'm trying to integrate the recordings inside a web application and I don't know if i'm doing it the right way.
Context :
- Web integration of live playing
- use of webrtc-stream-manager-v2 for live (working well)
Goal :
- Navigate in recordings and read the replay
I tried :
- Get the device footage to get timestamp of the recordings : OK
- Use of webrtc-stream-manager-v2 and connection.updatePosition(ms) with the extracted timestamp: no read in the past/no effect
- Use html video + Device HTTP Stream with format to get the url : ok but slow and navigate in the chunk not very easy/smooth. Also need to get a ticket each time I read the url to be integrated in the html video component
- Open a WebRTC Tracker : no direct use for the webrtc-stream-manager-v2 and doesn't seem to be design to be directly integrated in html video
Can I use only the webrtc-stream-manager-v2 to read recording?
If no, is there a better way to read replays in a web application than getting the chunk with the Device Http Stream API?
Regards
-
Can I use only the webrtc-stream-manager-v2 to read recording?
Yes, webRTC-Manager supports “user-specified timestamp” (startTimeMs and endTimeMs)
You can play the video from a specific timestamp.read replays in a web application than getting the chunk with the Device Http Stream API?
Get recording chunks = GET /rest/v4/devices/{id}/footage
Reading replays = I am not very sure what you mean reading replays, can you explain for us? Do you mean playback?0 -
Hi Ichiro,
thanks for your answer, I'll try again then with webRtcManager using startTimeMs and endTimeMs.
I was using /rest/v3/devices/${cameraId}/media.webm endpoint and it worked but I'm pretty sure webrtc will be smoother.
I'll also take a look at footage endpoint .
For replays, yes I was meaning playbacks.
Regards,0 -
The player is something you may implement on your side. The Media Server sends you the SDP offer. Your code then unpacks the incoming packets, reads the media metadata, and initializes a player to decode and play the binary video data.
0
Please sign in to leave a comment.
Comments
3 comments