MIP SDK 2018, Previous and Next playbackdata in ImageViewerWpfControl vs ImageViewerControl (WinForms)

Sending PlaybackData.Previous and PlaybackData.Next commands doesn’t work in the ImageViewerWpfControl, but does work in the ImageViewerControl (Winforms). All other playback commands do work. I’m using the 2018 SDK, I’m not sure but I think it also didn’t work in the 2017 SDK. I’ve tried without a destination FQID as with a destination FQID for seperate controls, but both didn’t work. Also tried to use “previous” and “next” with upper case and lower case but didn’t make any difference.

Is there something I’m missing?

Thanks in advance.

San

I just noticed that the PreviousSequence and the NextSequence commands also fail in the Wpf control.

EnvironmentManager.Instance.SendMessage(new Message(
                                                        MessageId.SmartClient.PlaybackCommand,
                                                        new PlaybackCommandData { Command = PlaybackData.PreviousSequence }), _playbackControllerFqid);

I wanted to try to reproduce the simplest way. I modified the PlaybackWpfUser sample in this way:

        private void _maxForwardSpeedButton_Click(object sender, RoutedEventArgs e)
        {
            if (_playbackFQID != null)
            {
                PlaybackCommandData data = new PlaybackCommandData() { Command = PlaybackData.Next };
 
                //PlaybackCommandData data = new PlaybackCommandData() { Command = PlaybackData.PlayForward, Speed = 32 };
                EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(
                                                    MessageId.SmartClient.PlaybackCommand,
                                                    data), _playbackFQID);
            }
        }

This works fine, I am unable to reproduce your observations.

Perhaps you could repeat my experiment, if that works for you dive into the differences between your code and the sample..

I’ve tried your code, the PlayForward command with different speeds work, the next and previous still don’t. I’ve tried using different FpsRates as well as basic/windows authentication as well as jpeg and h.264. Also tried different Xprotect server versions, professional as well as advanced, still no luck.

I have even tried to add a PlaybackWpfUserControl with which i was able to play forward and backward, use the timeline and still, the previous and next buttons weren’t working.

I’ve tried the “PlaybackWpfUser” project from the ComponentSamples in the SDK and was able to use the PlaybackData.Next and PlaybackData.Previous commands. I must be missing something, but can’t just find it. There is literally no difference in the construction and initialization between my project and the sample project :persevering_face: