illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.89k stars 1.51k forks source link

Video keep streaming from the very beginning instead of live stream #647

Open NRicode opened 3 weeks ago

NRicode commented 3 weeks ago

ffmpeg -f gdigrab -framerate 10 -i desktop -c:v libx264 -preset ultrafast -tune zerolatency -f flv rtmp://192.168.1.3/live/STREAM_NAME

nodejs code

const config = { rtmp: { port: 1935, chunk_size: 60000, gop_cache: true, ping: 30, ping_timeout: 60, }, http: { port: 8000, allow_origin: '*', }, };

const nms = new NodeMediaServer(config); nms.run()

when I access the stream through web page, it keeps playing the video from the very beginning. how do I fix this?