html5_rtsp_player icon indicating copy to clipboard operation
html5_rtsp_player copied to clipboard

RTSP error: 404 Not Found after playing about 25seconeds

Open ufoozhenghao opened this issue 5 years ago • 4 comments

using HIKVISON NVR

1 2 3

in the 3ed picture, when console.log shows Media description for payload type: 112 not provided in 3 times and follow with [client:rtsp] OPTIONS * RTSP/1.0 CSeq: 6 User-Agent: SFRtsp 0.3 Authorization: Basic YWRtaW46YWRtaW4xMjM0NTY= and finally the alert shows up "RTSP error: 404 Not Found"

ufoozhenghao avatar Jan 20 '21 07:01 ufoozhenghao

可能是因为 keepAlive机制, 目前源码配置的是 keepaliveTime = 30000 部分海康DVR RTSPserver 会认为客户端发送的保活报文是垃圾数据,并停止RTSP拉流 可以通过把 源码这个参数修改成1分钟,2分钟,看直播是否会1分钟,2分钟卡住来验证是否这个原因

it may be because keepAlive mechanism, the current source configuration is keepaliveTime = 30000 Some Hikvision DVR RTSP servers will consider the keep-alive messages sent by the client as junk data and stop RTSP streaming You can verify whether this is the reason by modifying the parameter of the source code to 1 minute, 2 minutes, and see if the live broadcast will be stuck for 1 minute and 2 minutes.

kromalee avatar Feb 20 '22 02:02 kromalee

感谢回复

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: kromalee @.> 发送时间: Sunday, February 20, 2022 10:40:40 AM 收件人: Streamedian/html5_rtsp_player @.> 抄送: HaoXuan @.>; Author @.> 主题: Re: [Streamedian/html5_rtsp_player] RTSP error: 404 Not Found after playing about 25seconeds (#170)

可能是因为 keepAlive机制, 目前源码配置的是 keepaliveTime = 30000 部分海康DVR RTSPserver 会认为客户端发送的保活报文是垃圾数据,并停止RTSP拉流 可以通过把 源码这个参数修改成1分钟,2分钟,看直播是否会1分钟,2分钟卡住来验证是否这个原因

it may be because keepAlive mechanism, the current source configuration is keepaliveTime = 30000 Some Hikvision DVR RTSP servers will consider the keep-alive messages sent by the client as junk data and stop RTSP streaming You can verify whether this is the reason by modifying the parameter of the source code to 1 minute, 2 minutes, and see if the live broadcast will be stuck for 1 minute and 2 minutes.

― Reply to this email directly, view it on GitHubhttps://github.com/Streamedian/html5_rtsp_player/issues/170#issuecomment-1046147241, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKBBYQCX4ZOC24HOCIE7W23U4BICRANCNFSM4WKII4HQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

ufoozhenghao avatar Feb 20 '22 03:02 ufoozhenghao