Open web page from the plugin

We are presently trying to open our application WebPage inside Milestone Xprotect Smart Client 2023 R3.

Please find below our approaches we tried so far and its outcomes.

Can you please let us know if it is possible to open a web application inside the Smart Client and guide us towards a possible solution.

(Note: We are able to open the web application using Axis Optimizer Web View, but we are trying to develop our own native plugin instead.)

  1. We have tried opening the web page by using the built-in HTML page browser view item, but we are getting a blank page when trying to load the web page. (refer to Image 1.png)
  2. Next, by using this article as a reference : https://supportcommunity.milestonesys.com/s/article/alternative-browser-plugins-for-the-XProtect-Smart-Client-howto?language=en_US Upon further trying to load using a Chromium browser View item plugin , we are getting a blank page once more with errors in the dev tools page. (refer to Image 2.png)

Sometimes you can tweak the built-in browser to display more.. https://developer.milestonesys.com/s/article/Smart-Client-IE-browser-emulation-how-to-use-HTML5-web-pages-how-to

The tip to use this alternative is provided as is and there is no support from Milestone. ((You can also see the disclaimer in the knowledge base article.))

There is a chance that other users of this forum have better advise based on experience..

It is on the wish list here at Milestone to exchange the built-in browsing capabilities in a future version. For now this has not been prioritized and there is no schedule for this.

Hi @Bo Ellegård Andersen (Milestone Systems)​ ,

Thanks for your reply. We have now been able to implement the browser functionality within Smart Client using Cefsharp now.

But we are now facing another issue related to closing of plugin everytime the user selects or navigates from our webpage(workspace) to another tab on the Smart Client.

whenever we move from our web page workspace tab to another tab in the Smart client, the plugin closes internally and the session ends.

The webpage freshly loads once again and we are back to the initial login page and we lose our session.

Is there any way we can stop the plugin close programmatically and prevent the session in the webpage from ending until the main Smart client closes?

This is how the Smart Client is implemented. If you switch from a workspace to another workspace the control is shut down. I guess the design makes sense when the first consideration if camera views, you do not want to maintain the streaming and resulting bandwidth usage, and it is easy to start the streaming again.

I have generally been advising developers to make sure their ViewItemPlugin persists data in a way where it can resume when there is a switch away and back, and the underlying control is closed and reopened. I do not know if this is feasible for you in this scenario with your webpage, if you can device a way to resume.