xhltkakfuqek
50
2022-05-13 10:10:40
1
61

node.js rtsp에 관해서 질문드립니다.


node.js 로 rtsp 스트리밍을 만들려고 하는데 


const Stream = require('node-rtsp-stream')

stream = new Stream({
   name: 'foscam_stream',
   streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
   wsPort: 9999,

})


stream = new Stream({
  name: 'foscam_stream2',
  streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
  wsPort: 9998,
})


stream = new Stream({
  name: 'foscam_stream3',
  streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
  wsPort: 9997,
})


stream = new Stream({
  name: 'foscam_stream4',
  streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
  wsPort: 9996,
})

stream = new Stream({
  name: 'foscam_stream5',
  streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4',
  wsPort: 9995,
})

이런식으로 만들고 html로 스트리밍을 다 열려고 하는데 어떤식으로 해야 다 열 수 있을까요?

0
  • 답변 1

  • kenu
    61k
    2022-05-13 10:13:46

    다른 코드 참고해 보세요.

    https://sourcegraph.com/search?q=context:global+const+Stream+%3D+require%28%27node-rtsp-stream%27%29&patternType=literal

  • 로그인을 하시면 답변을 등록할 수 있습니다.