131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

Fresh clone and error #62

Closed fxfactorial closed 4 years ago

fxfactorial commented 6 years ago

Just cloned and did as said in README, used both npm and yarn to install and got this.

$ uname -a
Darwin ... 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
~/R/player ❯❯❯ git rev-parse --short HEAD
7de8ff1
~/R/player ❯❯❯ node --version
v9.10.0
~/R/player ❯❯❯ node server-static.js
New guy
/Users/me/Repos/player/lib/_server.js:79
      self.readStream.end();
                      ^

TypeError: Cannot read property 'end' of undefined
    at WebSocket.<anonymous> (/Users/me/Repos/player/lib/_server.js:79:23)
    at WebSocket.emit (events.js:185:15)
    at WebSocket.cleanupWebsocketResources (/Users/me/Repos/player/node_modules/ws/lib/WebSocket.js:926:10)
    at Socket.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1106:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)
fxfactorial commented 6 years ago

@131 Any pointers?

131 commented 6 years ago

I'll look into that if i find some time, can't really say when :x