Streamedian / html5_rtsp_player

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

TypeError: Cannot read property 'sprop-parameter-sets' of undefined #119

Open realgsg opened 5 years ago

realgsg commented 5 years ago

help! when i connected to a honeywell ip camera, an error occurred as follow:

Client paused Client started [mse] Media source opened: open [info] ------------- Info --------------------- [info] License expires at : Invalid expiration time [info] Requested domain : 127.0.0.1 [info] ----------------------------------------- [client:rtsp] OPTIONS rtsp://192.168.5.106:554/ch01.264 RTSP/1.0 CSeq: 1 User-Agent: SFRtsp 0.3

[mse] Media source ended: closed [mse] Media source closed: closed [mse] Media source opened: open [client:rtsp] RTSP/1.0 200 OK CSeq: 1 Public: OPTIONS, DESCRIBE, SETUP, PLAY, GET_PARAMETER, SET_PARAMETER, TEARDOWN

[client:rtsp] DESCRIBE rtsp://192.168.5.106:554/ch01.264 RTSP/1.0 Accept: application/sdp CSeq: 2 User-Agent: SFRtsp 0.3

[client:rtsp] RTSP/1.0 200 OK CSeq: 2 Date: 23 May 2019 11:14:05 GMT Content-Type: application/sdp Content-Base: rtsp://192.168.5.106:554/ch01.264/ Content-Length: 357 Cache-Control: no-cache

v=0 o=- 8246755 8246755 IN IP4 192.168.5.106 a=control: a=source-filter: incl IN IP4 192.168.5.106 s=WUHAN Ants RtspServer a=range:npt=0- t=0 0 m=video 0 RTP/AVP 96 c=IN IP4 0.0.0.0 a=rtpmap:96 H264/90000 a=control:ctype=video a=recvonly m=application 0 RTP/AVP 106 a=rtpmap:106 vnd.onvif.metadata/90000 a=control:ctype=app106 a=sendonly [parser:sdp] Ignored unknown SDP directive: c=IN IP4 0.0.0.0 [client:rtsp] SDP contained 2 track(s). Calling SETUP for each. [client:rtsp] setup track: video [client:rtsp] setup track: application [client:rtsp] SETUP rtsp://192.168.5.106:554/ch01.264/ctype=video RTSP/1.0 Transport: RTP/AVP/TCP;unicast;interleaved=0-1 Date: Thu, 23 May 2019 03:17:06 GMT CSeq: 3 User-Agent: SFRtsp 0.3

[client:rtsp] RTSP/1.0 200 OK CSeq: 3 Server: Ants Rtsp Server/1.0 Date: 23 May 2019 11:14:05 GMT Session: 8246755; timeout=60 Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=006A5741

TypeError: Cannot read property 'sprop-parameter-sets' of undefined

============================================= but, it can be played in VLC media player

realgsg commented 5 years ago

Can anybody help me?

victorgrenke commented 5 years ago

Please add "fmtp" atrribute to SDP of your stream, or remove the processing from code