HLS Streaming

Answered

Comments

6 comments

  • Avatar
    Anton Babinov

    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?

    0
    Comment actions Permalink
  • Avatar
    Reynard Bubb

    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.

    0
    Comment actions Permalink
  • Avatar
    Anton Babinov

    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.

    0
    Comment actions Permalink
  • Avatar
    Reynard Bubb

    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". 

    0
    Comment actions Permalink
  • Avatar
    Andrey Terentyev

    Reynard,

    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.

    0
    Comment actions Permalink
  • Avatar
    Reynard Bubb

    Hi Andrey,

    Sorry for the late reply. While creating the Video.js test page to submit I noticed that one of the Video.js CDN links were unreachable. After updating the CDN link the issue was resolved.

    Thank you for helping to resolve the issue.

    0
    Comment actions Permalink

Please sign in to leave a comment.