Programming/node.js2018. 10. 18. 14:52

접근 경로 드럽게 기네 -_-

var stream = new Stream({
name: "name",
// streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
streamUrl: url,
wsPort: wsport
});

// console.dir(stream);
console.log(stream.mpeg1Muxer.stream.pid);


아무튼 stream 객체는 아래와 같다.

VideoStream {

  name: 'name',

  streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',

  width: undefined,

  height: undefined,

  wsPort: 44911,

  inputStreamStarted: false,

  stream: undefined,

  mpeg1Muxer:

   Mpeg1Muxer {

     url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',

     stream:

      ChildProcess {

        domain: null,

        _events: {},

        _eventsCount: 0,

        _maxListeners: undefined,

        _closesNeeded: 3,

        _closesGot: 0,

        connected: false,

        signalCode: null,

        exitCode: null,

        killed: false,

        spawnfile: 'ffmpeg',

        _handle: [Object],

        spawnargs: [Array],

        pid: 5780,

        stdin: [Object],

        stdout: [Object],

        stderr: [Object],

        stdio: [Array] },

     inputStreamStarted: true,

     _events: { mpeg1data: [Function], ffmpegError: [Array] },

     _eventsCount: 2 },

  wsServer:

   WebSocketServer {

     _server:

      Server {

        domain: null,

        _events: [Object],

        _eventsCount: 5,

        _maxListeners: undefined,

        _connections: 0,

        _handle: null,

        _usingSlaves: false,

        _slaves: [],

        _unref: false,

        allowHalfOpen: true,

        pauseOnConnect: false,

        httpAllowHalfOpen: false,

        timeout: 120000,

        keepAliveTimeout: 5000,

        _pendingResponseData: 0,

        maxHeadersCount: null,

        [Symbol(asyncId)]: -1 },

     _closeServer: [Function],

     options:

      { host: [Getter],

        port: [Getter],

        server: [Getter],

        verifyClient: [Getter],

        handleProtocols: [Getter],

        path: [Getter],

        noServer: [Getter],

        disableHixie: [Getter],

        clientTracking: [Getter] },

     path: null,

     clients: [],

     _events: { connection: [Function] },

     _eventsCount: 1,

     broadcast: [Function] },

  _events: { camdata: [Function] },

  _eventsCount: 1 } 


'Programming > node.js' 카테고리의 다른 글

node.js를 이용한 자기 자신의 ip 얻기  (4) 2018.10.22
웹소켓 그리고 공유기?  (4) 2018.10.18
node.js post body  (0) 2018.10.17
node spawn args  (0) 2018.10.17
node post header max size  (0) 2018.10.16
Posted by 구차니