Node-Media-Server icon indicating copy to clipboard operation
Node-Media-Server copied to clipboard

Trying to publish with auth not working even follow all the step!

Open lyhourchhen opened this issue 3 years ago • 3 comments

Maybe it is would be the silly question to open the issue but i try to publish the live with auth by follow all the guides unfortunately it is unauthorized. My simple reproduce

const config = {
  rtmp: {
    port: 1935,
    chunk_size: 10000,
    gop_cache: true,
    ping: 30,
    ping_timeout: 60,
  },
  http: {
    port: 8000,
    allow_origin: "*",
    mediaroot: "media",
  },
  auth: {
    play: true,
    publish: true,
    secret: "keykeykey",
  },
};
const md5 = require("md5");

const generateTimestamp = (date) => {
  const datum = Date.parse(date);
  return datum / 1000;
};
const time = generateTimestamp("02/22/2025 23:31:30"); 
//1740241890

const hasValue = md5(`/live/stream-${time}-keykeykey`);
//b701fbf5800981f523a06095ea400492

// i use this to publish with obs
// rtmp://ip:1935/live/stream?sign=1740241890-b701fbf5800981f523a06095ea400492

// log from server enter image description here

lyhourchhen avatar Feb 20 '22 11:02 lyhourchhen

I am having the same issue. NMS doesn't appear able to pull the query params off the url

CameronSima avatar Mar 20 '22 19:03 CameronSima

i am having the exact same issue

deeaamon avatar Apr 21 '22 20:04 deeaamon

any updates on this @illuspas ?

william-levi avatar Jun 01 '22 12:06 william-levi