pldubouilh / live-torrent

Simple proof-of-concept for a live streaming solution based on webtorrent
MIT License
168 stars 39 forks source link

error streaming m3u8 #25

Open malaquias63 opened 3 years ago

malaquias63 commented 3 years ago

Hello when i use your example command to stream a url
i get

root@vps-dsadas:/home/ubuntu# live-torrent -v -u http://mystreamserver.local:9090/live/dsadas/dasdasd/23.m3u8

Starting server on port 8008

"Buffer"

root@vps-dsadas:/home/ubuntu#

you know why ?

And if i use your example

root@vps-dsadas:/home/ubuntu# live-torrent -v -u https://live.computer/manifest.m3u8

Starting server on port 8008

Sample client fileserver running on http://127.0.0.1:8008

Manifest at: http://127.0.0.1:8008/manifest.m3u8

Manifest generated on: Mon Jan 04 2021 15:48:39 GMT+0000 (UTC)

EXTM3U

EXT-X-VERSION:3

EXT-X-TARGETDURATION:10

EXT-X-MEDIA-SEQUENCE:66

EXTINF: 10.083333

magnet:?xt=urn:btih:63d947084dcf2cea980072cfaf0358f8f3285cd8&dn=66.ts&tr=wss%3A%2F%2Ftracker.openwebtorrent.com

https://live.computer/chunks66.ts

but once i open the url on port 8008 i got

cannot GET /

i installed all npm depedencies and i'am using your live-torrent from npm install.

some clues?

malaquias63 commented 3 years ago

So the get / problem is solved

now i try your test video

but in chrome i get

Uncaught TypeError: Cannot read property 'register' of undefined at Object. (build.js:17) at Object.1.buffer (build.js:88) at s (build.js:1) at e (build.js:1) at build.js:1