add a new button on the default toolbar

Hi,

We want to add a new button on the default toolbar like the picture below.I found a sample SCToolbarPlugin,but it create a new toolbar and the other default buttons like Start manual recording are not available.

How do we add a new button on the default toolbar so that we can also use the existed buttons developed by milestone?

There is more to the sample. In this screen capture see the jig saw puzzle icon, this is also added by the sample without removing any of the other button that work on a camera-view-item.

I am guessing but I think the part of the sample you will like to use is the ShowCameraNameViewItemToolbarPluginInstance while other other parts of the sample are unwanted.

I tried to run the SCToolbarPlugin but there are only 4 buttons

I also tried to use ShowCameraNameViewItemToolbarPlugin only, then there is the printer button only

I don’t know how to add a new button to the default toolbar,can you tell me more details?

Please try to find ShowCameraNameViewItemToolbarPluginInstance and then test with a regular camera view-item.

See your own picture with my comments.

The green you show is the BackgroundColorViewItemUserControl

Perfect!

many thanks

Hi, Bo,

There’s another question. We try to replace the new added icon (as follows)with a customized one , but we did not find the icon paths. Would you please tell us how to do the replacement ?

Thanks in advance for your attention.

new-added

Looking into the MIP Documentation - VideoOS.Platform.Client.ViewItemToolbarPluginInstance Class Reference - I find

Image VideoOS.Platform.Client.ViewItemToolbarPluginInstance.Icon

[get, set]

When not doing this in the sample the sample effectively resorts to a default icon. I have never tried this myself and there is no sample code using this.

Oh, I got it. Thanks a lot.