You would use MessageCommunication PlaybackCommand with Goto.
See this snippet of code (which you can also see in the PlaybackUser sample):
private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
{
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackCommand, new PlaybackCommandData() { Command = PlaybackData.PlayStop }), _playbackFQID);
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackCommand, new PlaybackCommandData() { Command = PlaybackData.Goto, DateTime = dateTimePicker1.Value.ToUniversalTime() }), _playbackFQID);
}
Thank you Bo.
Thank you for this tip. Anyway I’m wondering how to get the SmartClient’s Playback FQID. Is there a way?
I believe it is
FQID VideoOS.Platform.Client.WindowInformation.PlaybackControllerFQID
[get]
Get the FQID for the default PlaybackController for the window identified by this class.
HI bo, and thank you again.
I tried but PlaybackControllerFQID always returns null pointer.
Anyway I solved using message without passing any FQID.
I believe you are seeing the expected behavior.
If the the main window and standard PlaybackController you will get null, and you can use null or the call without passing any FQID.
I believe if you test in a floating window you will get a FQID and not null.