html5_rtsp_player icon indicating copy to clipboard operation
html5_rtsp_player copied to clipboard

Uncaught TypeError: Cannot read property 'endpoint' of null

Open ChrisLee0211 opened this issue 5 years ago • 1 comments

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.

ChrisLee0211 avatar Aug 15 '19 07:08 ChrisLee0211

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}`);
   ...

houaq avatar May 18 '20 10:05 houaq