Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

html - How to set a timer on a RTSP stream on a web page?

I have an ip camera which provides a live RTSP video stream. Now I want to display the stream on my web page and IPCamLive is the solution for me. With IPCamlive I can embed the livestream on my webpage. It is provided with on demand streaming. So the stream will only consume bandwidth if someone is watching it.

Unfortunately the streaming timeout is 1h. So when someone will watch it, the stream will play 1 hour which ensures that a lot of bandwidth is used. It is a live stream of cranes, so people will only watch it for like 2 minutes to see what's going on and how far a project is.

So my question is if there is any code for this that will make the stream time out after like 2 minutes, so the user has to force the stream again to watch it after those 2 minutes?

Would be a life saver if someone knows a way to do this!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...