We run the below code in smartlcient plugin when mode changes to playback EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackSkipModeCommand, PlaybackSkipModeData.Noskip));
but when we play video, still SC keeps skipping the videos gaps, unless we set in the SC setting(timeline).
Hi Thejaswi, There are two ways to do this, one is sending command like you did, and you missed specifying the destination which is the FQID of the playbackController that you used:
_playbackFQID = ClientControl.Instance.GeneratePlaybackController();
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackSkipModeCommand, PlaybackSkipModeData.Noskip), _playbackFQID);
The second way, is set the property on playbackController:
PlaybackController pc = ClientControl.Instance.GetPlaybackController(_playbackFQID);
pc.SkipGaps = false;
How do we set the property of the smartclient?
EnvironmentManager.Instance.SendMessage(new VideoOS.Platform.Messaging.Message(MessageId.SmartClient.PlaybackSkipModeCommand, PlaybackSkipModeData.Noskip)); this was working before.
If you can point out which version of SmartClient works with not setting destination, we will take look into it. For the time being, we have provided you two ways to solve your problem. You request on setting SkipGaps on SC timeline is not supported.
Can’t we get the SC PlaybackController handle and pass as argument?
Maybe -
virtual FQID VideoOS.Platform.ClientControl.GetPlaybackController (WindowInformation windowInformation ) [inline, virtual]
To go back to what I guess is the core issue..
You say PlaybackSkipModeCommand worked and now does not work. Please clarify: Does it work in older versions of the Smart Client by has stopped working in newer Smart Client? What is the version where it does not work? (What versions does work?)
Hello, In the SmartClient (within Background plug-in) in Playback mode I can start playback with MessageId.SmartClient.PlaybackCommand & PlaybackData.PlayForward, or I can Stop playing with PlaybackData.PlayStop . Its all without FQID destination and FQID sender (destination = null). But there is no working way to switch to Noskip mode playing WHIHTOUT FQID destination as above.
Please help.
Sorry for delayed reply. The skip gap mode in Smart Client is controlled by a setting in the Settings menu, which unfortunately cannot be controlled from the SDK, so it is not possible to change the mode from code.
Thank you! So , can i read the “Smart Client Settings” from the SDK, to “tell” user what to do for correct using my plugin?
Unfortunately not. The settings (and the Smart Client Profiles they rely on) are one of the remaining ‘black spots’ on our wishlist of things we are missing to support in the SDK.