I have integrated Milestone VMS with some existing software. We have got everything working fine, the video loads, can switch from Live to Playback and we can send Playback commands Play, Pause, Seek, Rewind, Fast forward without any issues - all while supporting multiple players.
However, Playback commands Next and Previous do not work for frame to frame navigation.
// Start playback mode
_imageViewer.StartBrowse();
EnvironmentManager.Instance.PostMessage(
new Message(MessageId.System.ModeChangeCommand, Mode.ClientPlayback),
_playbackFqid);
// Send pause command
SendPlaybackCommand(new PlaybackCommandData {Command = PlaybackData.PlayStop});
// Send Previous Frame command
SendPlaybackCommand(new PlaybackCommandData {Command = PlaybackData.Previous});
// Handle command
private void SendPlaybackCommand(PlaybackCommandData command)
{
EnvironmentManager.Instance.PostMessage(
new Message(MessageId.SmartClient.PlaybackCommand, command),
_playbackFqid);
}
Pause command works fine. In both cases _playbackFqid is the same object, generated via ClientControl.Instance.GeneratePlaybackController(). Any ideas why PlaybackData.Next and PlaybackData.Previous commands are having a hard time functioning correctly?
Using SDK 12.1
WPF integrating via ImageViewerWpfControl
Referenced from Component Sample VideoViewer, which works fine.