HLS Streaming
AnsweredHi,
We developed an web page that we use to pull camera live view streams via HLS streaming. The web browser video source changes frequently to view different camera live views. Recently the HLS live streaming stopped working completely in the browser and just displays a still image. I receive an error in my browser "Uncaught Error: no bytes available". I can open the HLS stream in VLC and we don't see any error messages in the VMS logs.
Do you have any idea why this issue in the browser might occur?
Regards
Reynard
-
Hi Reynard,
which library do you use to play video on your web page? Do you have same behaviour with different web browsers/workstations? If VLC can play the HLS stream, then it is likely that something changed on your side.
Do you have any idea why this issue in the browser might occur?
Which url you use in web browser to request the stream? Which VMS build? Do you have any additional errors in the developer's console of the web browser?
-
Hi Anton,
I'm using Video.js as a web video player and I'm seeing this behavior on Chrome, Firefox, Microsoft Edge and Internet Explorer. The HLS streaming was working smoothly for about 2 months before today on multiple workstations and stopped working today on all of them.
I'm using HLS streaming to pull the stream, http://<serverIP>:<port>/hls/<cameraId>.m3u8. Video.js web video player is used to play the HLS URL
VMS build: VMS Client version 4.2.0.32661
The only error I see in my browser is a "Uncaught Error: no bytes available" error and we see no error in our VMS server logs.
-
Can it be related to the VMS update to version 4.2? There is new option in system administration tab in version 4.2 called "Allow only secure connections" and it is enable by default. So your http://<serverIP>:<port>/hls/<cameraId>.m3u8 request will receive redirect to https and Video.js might not support this, while VLC do. Try pulling stream via https or disabling "Allow only secure connections" option.
-
I did a bit of testing and I'm able to pull the stream from Nx Witness using HTTP Streaming: http://<server_ip>:<port>/media/<cameraId>.webm
We would however like to resolve the HLS streaming issue
The "Allow only secure connections" is disabled.
I made sure that the browser could stream HLS links from other sources, but when pulling from the VMS I only get a still image and the error "no bytes available".
-
Could you please share your existing page or prepare a simple page which uses Video.js and share this page with us?
We'll try to reproduce the issue in our lab.
VMS Client version 4.2.0.32661
Please, try to update to the latest official release and see if the issue persists.
Please sign in to leave a comment.
Comments
7 comments