HTML player used in Nx Web Admin
AnsweredWe would like to learn about which video player is used in the NX admin panel to playback the camera video stream.
We are using video.js but the stream (webm, mp4, hls) and load time is slower than the NX admin panel.
Thanks!
0
-
1) We are using hls.js as an underlying player, and force HLS in all cases if the camera supports h264
2) There are two tricks to make it load faster:
- Set up motion detection and recording on the camera - this way server will keep consuming video from the camera at all times, saving time on establishing a connection
- Request secondary stream - server stores the latest few seconds in the buffers for that stream, and thus can start streaming it right ahead. For the primary stream, the server will have to wait for about 15 seconds before starting the stream
0 -
Evgeny,
Thanks a lot for your feedback. 2 follow up questions:
1. If we enable motion detection and set "motion recording" instead of record always. Will the video load time also faster?
2. We are using this API: http://localhost:7001/hls/<cameraId>.m3u, is it primary or secondary stream?
Thanks, Jason
0 -
1. Yes.
2. By default, it is adaptive, add ?lo at the end to force secondary stream.
0
Please sign in to leave a comment.
Comments
3 comments