Show camera on client start up

I want to start the Smart Client with a certain camera by guid from a script file, like the PlaybackUser demo in the ComponentSample.

Where can I find any example?

Thanks

Try to look up Startup scripting in the Smart Client help (F1) or manual.

If this might fit your need you will not have to use the MIP SDK..

I’m using the start up scripting manual. The problem is to know what should I look for in the documentation?

I was able to find an old example. Modify it to use a user name and password and a view that you have in your setup. Then save it as “test.scs” and then run it. It logs in, goes into playback mode and then switches to the view specified.

<ScriptEngine>
<Login>
<ServerAddress>http://localhost</ServerAddress>
<AuthenticationType>Simple</AuthenticationType>
        <UserName>test</UserName>
        <Password>test</Password>
</Login>
<Script>SCS.Application.ShowBrowse();
SCS.Views.SelectView("Default group.Default view group.Default view");
</Script>
</ScriptEngine>

I’ve tried this but the problem is that I get the last view I’ve seen and not the specified in the SCS.Views.SelectView

What is the XProtect product?

Did you include the full name of the view (x.x.x)?

The product is XProtect Corporate 10.2.B (2016 R3)

Yes, the path is full

Do you have any special characters in the view group, group or view name? If you make new group or view does it work better? If you create new View Group in the Management Client does it work better with that one?

Now it finally working.

But, I can show only views? Can I show a camera without setting up a view before?

Is it possible with Milsetone Web?

I think you will have to start with a allready configured view, I have never seen it done in another way. But you can from the script make temporary changes to the view. I experimented and the script now shows my “Server room” camera, note that the configured view “Default view” is not modified, so if the user switch to another view and back to “Default view” the originally configured camera will show instead of “Server room”.

<ScriptEngine>
<Login>
<ServerAddress>http://localhost</ServerAddress>
<AuthenticationType>Simple</AuthenticationType>
        <UserName>test</UserName>
        <Password>test</Password>
</Login>
<Script>SCS.Application.ShowBrowse();
SCS.Views.SelectView("Default group.Default view group.Default view");
SCS.Views.SetCameraViewItemCamera(0,"Server room");
</Script>
</ScriptEngine>

Note. If you develop a Smart Client plug-in you could do more advanced operations..

Thanks! For now this is working fine. We are trying to work with the web client and do the same

Where can I find any documentation for the web client? I want to compare the rich client with the startup script to the same with a web client

There is no web client documentation as such, there is instruction videos on how to use it. The Mobile Server setup is covered by the Administrators manual for the Milestone product.

Note that the web client is not open for integration or customization and it does not support start up scripts or similar.

OK, Thanks for the help