Streamedian / html5_rtsp_player

Play RTSP stream from IP camera in browser in this HTML5 player without plugins
Apache License 2.0
2.61k stars 598 forks source link

Uncaught TypeError: Cannot read property 'endpoint' of null #132

Open ChrisLee0211 opened 5 years ago

ChrisLee0211 commented 5 years ago

when the player was working with socket ,it would console a error in each 5~8 seconds like this:

Uncaught TypeError: Cannot read property 'endpoint' of null at RTSPClientSM.authenticator (client.js:365) at RTSPClientSM.sendRequest (client.js:318) at RTSPStream.sendKeepalive (stream.js:75) at stream.js:89

btw, my project is base on vue , i had try to use setInterval to reflash the <video> node ,but it doesn`t work , it still will throw a error in each 5~8 seconds.

houaq commented 4 years ago

Got same error at line number 4474:

this.authenticator = (_method)=>{
    let ep = this.parent.endpoint;
    let ha1 = md5(`${ep.user}:${parsedChunks.realm}:${ep.pass}`);
    let ha2 = md5(`${_method}:${this.url}`);
   ...