Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream not getting initialized with any desktop player, unbuffered stream works OK. #1

Open
silvium opened this issue Sep 29, 2014 · 1 comment

Comments

@silvium
Copy link

silvium commented Sep 29, 2014

Using the provided example code i'm getting:

hls-buffer.js:16
         stream.pipe(response);
                    ^
 TypeError: Cannot call method 'pipe' of null
     at Server.<anonymous> (c:\hlsbuffer\hls-buffer.js:16:16)
     at Server.EventEmitter.emit (events.js:98:17)
     at HTTPParser.parser.onIncoming (http.js:2056:12)
     at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:120:23)
     at Socket.socket.ondata (http.js:1946:22)
     at TCP.onread (net.js:525:27)

Update: the index.m3u8 only contains a reference to chunklist.m3u8. I noticed that the .ts file this buffer creates is actually just a renamed chunklist.m3u8. Here are both the files:

index.m3u8:

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1717211,CODECS="avc1.77.30, mp4a.40.2",RESOLUTION=1024x576
    chunklist.m3u8?wowzasessionid=594606542

chunklist.m3u8:

    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-ALLOW-CACHE:NO
    #EXT-X-TARGETDURATION:11
    #EXT-X-MEDIA-SEQUENCE:1317
    #EXTINF:9.04,
    media_1317.ts?wowzasessionid=1052438652
    #EXTINF:10.96,
    media_1318.ts?wowzasessionid=1052438652
    #EXTINF:10.0,
    media_1319.ts?wowzasessionid=1052438652

Update 2: replaced references to index.m3u8 with chunklist.m3u8, which looks like this now:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1443
#EXTINF:10.0,
/5f0cfc1274b39c66437a69464aa6d73b.ts
#EXTINF:10.0,
/2e1ad8c774f6cfe12c502d27ed7d662c.ts
#EXTINF:10.0,
/45fcedc4303515b455730a7086627bfc.ts

But I still get the same error.

@silvium silvium changed the title Stream not getting initialized, it seems Stream not getting initialized with any desktop player, unbuffered stream works OK. Sep 30, 2014
@isayed
Copy link

isayed commented Feb 23, 2017

i recieve the same error
TypeError: Cannot read property 'pipe' of null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants