I've setup a local RTMP media server with the node-media-server library. It receives media-stream from Streamlabs. I can access it with the localhost link easily and it works without any issue.
const NodeMediaServer = require("node-media-server");
const config = {
rtmp: {
port: 1935,
chunk_size: 60000,
gop_cache: true,
ping: 30,
ping_timeout: 60,
},
http: {
port: 8000,
allow_origin: "*",
},
};
var nms = new NodeMediaServer(config);
nms.run();
In this way I can only view the live stream. But what if I wanted to go back 10 seconds in the video? As the video is not stored, it is not possible. Is there any way I can achieve it?