PlaybackModeChangedHandler using independent playback

Hi,

We have a plugin with imageviewercontrol with independent playback support.

When in playback mode , if we click playforward ,playreverse,playstop on control we get a callback to playbackmodechangehandler and we are performing some action. Now when playing if we scroll on timeline the video stops , control changes to stop and we get playstop command in callback.

Now when in independent playback if we click playforward ,playreverse,playstop on control we get a callback to playbackmodechangehandler and we are performing some action. Now when playing if we scroll on timeline the video stops and control changes to stop but we are not getting playstop command in callback.

using MIP 2020 R1 SDK

Thanks,

We are sorry but many developers are out of office due to vacation. We will get back to you as soon as we have updates from them. Sorry for the inconvenience.

Milestone Development will start an investigation, let me get back to you as soon as I have updates from them.

Can you please update SDK and Smart Client to 2020 R3 which is currently newest?

Milestone Development tested this with the 2020 R1 Smart Client and got an error that the event method didn’t exists.

So, they checked with the MIP 2020 R1 SDK and there are no event on a playback controller in that version of the SDK.

But in 2020 R3, the following is possible:

-–

PlaybackController pc = ClientControl.Instance.GetPlaybackController(_playbackFQID);

pc.PlaybackModeChangedEvent += Pc_PlaybackModeChangedEvent;

-–

tried with latest 2020 R3 SDK -

PlaybackController pc = ClientControl.Instance.GetPlaybackController(_playbackFQID);

       pc.SkipGaps = false;

       pc.PlaybackModeChangedEventHandler += indePlaybackModeChangedEventHandler;

getting error

error CS0572: ‘PlaybackModeChangedEventHandler’: cannot reference a type through an expression; try ‘PlaybackController.PlaybackModeChangedEventHandler’ instead

1>ViewItemUserControl.cs(227,13,227,47): error CS0118: ‘PlaybackController.PlaybackModeChangedEventHandler’ is a type but is used like a variable

@Rie Kiuchi (Milestone Systems)​

Excellent, will try.

Is there any way to find the current playbackmode in sc like is it in play forward , play reverse or play stop.

I am sorry but my previous comment from Milestone Development was wrong, they tested 2021 R1 which is new release. This is a new functionality, and it will be released on MIP SDK 2021 R1. Please keep eye on Milestone news and please wait for 2021 R1 release.

Is there any way to find the current status of playbackmode in sc like is it in play forward , play reverse or play stop.

Unfortunately, there is no way to do it with current version(2020 R3). Please wait for 2021 R1release.

@Rie Kiuchi (Milestone Systems)​

I’m not asking with respect to individual playback, normal playback in SC, can any plugin know the current status of playbackmode in sc like is it in play forward , play reverse or play stop

You can use SmartClient.PlaybackIndication message for seeing the status -

https://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_messaging_1_1_message_id_1_1_smart_client.html&tree=tree_search.html?search=smartclient.playbackindication

If you want to see this and other messages received, Message Tester sample is also helpful for you to see them, please explore the sample -

https://doc.developer.milestonesys.com/html/index.html?base=samples/messagetester_sample.html&tree=tree_1.html

@Rie Kiuchi (Milestone Systems)​ Would like to know the current state like GetPlaybackindication.

Unfortunately no, we don’t have such a get properties. Only the possibility is to use SmartClient.PlaybackIndication message for seeing the status as I mentioned in the previous answer.