-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtsp stream does not reconnect when device(camera) restarts. #366
Comments
Duplicate to #361 Provide logs as requested and I will review it. You might also want to check Config.Demuxer.ReadLiveTimeout (default is 20sec timeout) so if you get a timeout just increase this (in Ticks). |
do we have any timeout event? so that its easy to play again. Logs: |
@saman1832 you can use Player.MainDemuxer.TimedOut event for that (better use Task.Run to pause/re-open etc.) |
@SuRGeoNix I tried Player.MainDemuxer.TimedOut but here Player.MainDemuxer is null so getting null exception . |
Logs! |
I have applied Player.MainDemuxer.TimedOut successfully but when I am debugging the code when timeout hit one by one I am able to play again. But without debugger its not restarting.
LOGS: 23.21.42.726 | Warn | [#1] [Player ] No video frames 23.22.02.938 | Info | [#1] [Renderer ] Initialized with Feature Level 12.1 23.22.05.476 | Info | [#2] [Renderer ] Initialized with Feature Level 12.1 |
For some reason you dispose the previous player and you create a new one? Just use OpenAsync (no Stop, no Dispose) |
Just use OpenAsync (no Stop, no Dispose) this is causing UI freeze as well not able to play again. |
Just tried this code and worked fine for me Player.VideoDemuxer.TimedOut += (o, e) =>
{
Player.OpenAsync(@"...");
}; You need to debug your code, you shouldn't Dispose the Player (actually also the FlyleafHost) from what I can see |
I tried but it is making my UI Freeze. |
Can you pause the debugger and see why it freezes (which thread/dead lock?) |
when I am pausing the debugger and running then its working fine. But let me check again |
I found this. It starting after timeout but again getting stopped then paused.(see highleted one) 00.25.21.678 | Warn | [#3] [Demuxer: Main] Read Timeout !!!! 20098 ms |
00.28.51.661 | Trace | [FlyleafEngine] timeEndPeriod(1) sometime |
I don't see something with these logs. Its normal to see the screamer to stop/finish. You need to identify the freeze, I suspect a binding or another event that you listen which hangs the UI. |
now UI is not freezing but player is not opening 00.49.58.787 | Debug | [#1] [Player ] [SCREAMER] Finished (Status: Opening, Error: ) |
@SuRGeoNix please see the above cooment |
You dispose the FlyleafHost/Player/SwapChain. Not sure what you are doing as I cannot see your code. |
@SuRGeoNix after applying |
LOGS: AT 18.29 Player.VideoDemuxer.TimedOut += (o, e) => |
@saman1832 I cannot see your implementation. What I see from your logs is that you dispose the Demuxer and then trying to re-open it. That shouldn't be happening. You are doing something wrong with your code. |
When camera restarts then rtsp stream is not playing automatically but play in vlc.
The text was updated successfully, but these errors were encountered: