You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to connect to rtsp://admin:@192.168.40.4:554/live1.sdp How can I put the authentication part in this sample?
varnet=require('net')varrtsp=require('rtsp-stream')varencoder=newrtsp.Encoder()vardecoder=newrtsp.Decoder()// connect to RTSP servervarsocket=net.connect({host: 'example.com',port: 5000},function(){// make a request to the RTSP servervarreq=encoder.request({method: 'OPTIONS',uri: '*'})req.setHeader('CSeq',1)req.end()})// handle response from serverdecoder.on('response',function(res){console.log('--> received response from server:',res.statusCode)console.log('--> headers:',res.headers)res.pipe(process.stdout)})// connect the plumbingencoder.pipe(socket).pipe(decoder)
The text was updated successfully, but these errors were encountered:
I'm trying to connect to
rtsp://admin:@192.168.40.4:554/live1.sdp
How can I put the authentication part in this sample?The text was updated successfully, but these errors were encountered: