videogular / videogular2

The HTML5 video player for Angular 2
https://videogular.github.io/videogular2-showroom/#/
MIT License
670 stars 211 forks source link

HLS streaming from RTSP link #891

Open jingwei95 opened 4 years ago

jingwei95 commented 4 years ago

Description

Forgive that I am a newbie to this. I am trying to develop a page to stream IP cam. I have a RTSP link and converted it to RTMP and HTTP m3u8 format with RTMP Nginx module and it runs smoothly on nvr. But when I load it with vg-HLS. It does play but not smoothly as it will keep buffer. It seems like it is trying to get the m3u8 file and an error does show when I inspect it. image my fragment setting is 5s and the playlist length is 10s on the Nginx. Could someone help in and give some advice?

shanehsu commented 4 years ago

Do you have a device that support HLS playback natively (e.g. Safari on iOS or macOS, Edge before Chromium on Windows)? I would suggest trying on those device to make sure that thee stream itself good.

Also it might be helpful to inspect your Network tab in Web Inspector to see if all the requests are loaded fine.