Add customized toolbar on ImageViewer in Search preview

Hi,

SCToolbarPlugin shows how to add a customized toolbar, and it indeed works in both Live and Playback. For example, see following screen shot.

While in Search, the toolbar doesn’t show.

In additional to

ClientControl.LiveBuildInWorkSpaceId

and

ClientControl.PlaybackBuildInWorkSpaceId

we also tried to add other WorkSpaceIds when initiate plugin, but the plugin still doesn’t show in Search.

Do you have any suggestion?

Thank you very much!

May I clarify your question?

What you want to do is - first, search -

And double click one of the results, and you can see the video with a big view (please see below picture and the red square, is this what you want to do?)

Thanks, and yes we want to add a customized plugin in the red square area.

Milestone Development will start an investigation.

Thanks, hope there will be good news.:blush:

Hi Ives

we investigated this case and here are outcomes:

  • currently MIP toolbar plugins are not really enabled in the Centralized Search workspace (tough, you can force them to activate; see details below)
  • when forced to activate, plugin will have limited access to the calling context

Now in details.

The Centralized Search workspace does not have toolbar and thus any toolbar plugins support. That is why you do not see CentralizedSearch workspace ID in the ClientControl-class. At same time, if you specify that your plugin can activate in any workspace, you will see it appeared in the Playback control toolbar. You do it by specifying empty workspaces ids list in the plugin definition:

ViewItemToolbarPlaceDefinition.WorkSpaceIds = new List<Guid>() { };

But, when activated inside of the Centralized Search workspace playback control, your plugin will receive null as hosting window:

        public override void Init(Item viewItemInstance, Item window)
        {
            _viewItemInstance = viewItemInstance;
            _window = window; // currently is null in the Centralized Search workspace

In other words, activating toolbar plugin inside of the Centralized Search workspace is a challenge.

We noted that as a missing functionality and added a story for it in our backlog.

Best regards, Alex