Hi guys,
We have an issue when we connect from SDK 2019 to milestone server 2019 and play back a video, video stream doesn’t play continuously. It freeze at a one frame.
What basically do is,
_milestonePlaybackController = ClientControl.Instance.GetPlaybackController(playbackControllerFQID);
_milestonePlaybackController.SkipGaps = false;
_milestonePlaybackController.PlaybackTime = startTimeUtc; // I set the playback time here an at the same time I see the following exception in the debug console,
MIP: Error: AsyncSequencesGetAroundWithSpanHandler (CommandService):Exception source: System.Drawing
Exception type: System.InvalidOperationException
Exception message: Object is currently in use elsewhere.
Exception target site: CheckErrorStatus
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at VideoOS.Platform.Client.TimeLineUserControl.DisplayLine()
at VideoOS.Platform.Client.TimeLineUserControl.SequenceRecordingsHandler(Object objects, Object syncState)
at VideoOS.Platform.SDK.Export.SDKInternalCommandService.AsyncSequencesGetAroundWithSpanHandler(Object parm)
Any idea what causing this issue?
PS: It works fine when I talk from SDK2019 to Server 2018
Hi. We tried it with a sample “MediaPlaybackViewer2015”, and cannot reproduce it.
Could you please try this sample and say if it works for you or gives the same issue?
------------------------------------
Please find a following code;
_playbackController = ClientControl.Instance.GetPlaybackController(_playbackFQID);
And test it with adding your custom code with something like:
_milestonePlaybackController.SkipGaps = false;
_milestonePlaybackController.PlaybackTime = startTimeUtc;
Thanks for your reply Andriy,
To make the investigation easier, I’ll post the things that I have observed so far.
1 - This issue happens only when I talk to Milestone Server 2019 from SDK 2019. Other combinations work fine.
2 - Most of the time it only happens when I set the PlaybackTime to less than one hour back from the current time. It’s not fixed though; its varying from 1 hour to 15mins. but almost all the time when the playbackTime is less than 15mins.
_milestonePlaybackController.PlaybackTime = startTimeUtc;
// most of the time when DateTime.UtcNow.Addhours(-1) > startTimeUtc video feed get freezed
3 - I see the same issue in your sample application “MediaPlaybackViewer2015”. When I press backward play button, video freed is freezed until it pass more than ~15mins from the current time (again not 15mins always)
4 - I see the above exception in the debug console at the same time when I set the PlaybackTime;
MIP: Error: AsyncSequencesGetAroundWithSpanHandler (CommandService):Exception source: System.Drawing
Exception type: System.InvalidOperationException
Exception message: Object is currently in use elsewhere.
Exception target site: CheckErrorStatus
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.FillRectangle(Brush brush, Int32 x, Int32 y, Int32 width, Int32 height)
at VideoOS.Platform.Client.TimeLineUserControl.DisplayLine()
at VideoOS.Platform.Client.TimeLineUserControl.SequenceRecordingsHandler(Object objects, Object syncState)
at VideoOS.Platform.SDK.Export.SDKInternalCommandService.AsyncSequencesGetAroundWithSpanHandler(Object parm)
Please let me know if you need further detail on this.
Thanks
Hi. Thank you for the detail. We haven’t seen the exception with this test but we were able to see a similar issue(our freezing time was almost 15 seconds). We are going to investigate this one.
Thanks for the response Rie. Would you please keep me updated about the status of your investigation?
PS: It’s quite important for us to have a solution for this issue as it holds us releasing an update for one of the major features in our product.
Hi. The issue will be fixed in the next version( 2019 R2). It will soon release in June 2019. Please keep eye on the latest news from Milestone.