Hello,
I have to anticipate that I still have got issue installing the Essential+ on my two dev machines (one is win7 64bit and the other win10 64bit… on bot I’m unable to install the server). Told this I was asking you how do I set the camera once the server is installed. I’ve to present a demo next week but right now I’m a bit stucked. it’s possible to have the ImageViewerWpfControl to show a stream from a file instead of a camera (if its trivial to set up testing cam?).
Thanks in advance
Paolo
The Video File Viewer shows how to use the ImageViewerControl with exported video: http://doc.developer.milestonesys.com/html/index.html?base=samples/videofileviewer.html&tree=tree_2.html
Although above sample is using ImageViewerControl, the same can be achieved in almost identical way using ImageViewerWpfControl.
And it also shows how to add cameras?
No. I thought the problem were that you could not get the VMS installed on your demo machine and wanted a way to demonstrate playback even though being offline.
What do you mean by “add cameras”? Through code or?
it would be fine as starting point, by the way I’ve tried on a clean windows 2012 server installation and it installs (can this be due to windows version?), I mean I’ve to simulate at max 20 cameras, but right now I’ve not got 20 cameras, is there a way I can simulate them? adding them via interface nor via code, excuse me if I bother you but I’m a bit in a hurry!
Windows 7 is probably a bit of a stretch, but Windows 10 should work fine for a demo - I am running on Win10 myself.
As to simulating cameras your best option is to use the DirectShowDriver (manual setup with IP 0.0.0.1 and default credentials) which is part of the standard installation and supports playback from an avi file, but it only supports 8 cameras. Also, using much more than 8 of the DirectShow cameras might be pushing the server a bit as the DirectShowDriver is a bit (a lot) CPU consuming and only intended for smaller demonstration setups.
I’m on Windows 10 64 bit with 32gb ram,1TB ssd and i7 cpu… It seems to be some issue with SQL and some with IIS but the same error appears on 2 dev machine I normally use…btw thanks I’ll try with your suggestion and let you know, is there a guide on how to setup DirectShowDriver? Thanks
Hello Peter,
I’ve tried to follow the link you’ve posted above but I’ve issue following “Right click the recorder that you copied the file to and choose ‘Add Hardware’”, on which app should I click this? since I’ve seen and maybe the voices have changed from the pdf to the latest version of the software
Thanks
Hi Paolo. It is in the Management Client.
Ok, I’ve managed it, thanks a lot! just another question…I’m taking a look at the code you’ve wrote in the demo PlaybackWpfUser, there’s a thing that was not clear to me and made me spent some time… it was about the Post Build action that performs the copy of the legacy files… I think you should speficy this step otherwise users get the “VideoOs.Toolkit assembly is missing” ( even if it’s a related component that’s not referenced)
Is there a way after I’ve logged on to the server to ask for cameras and prefereably to point directly to a camera known it’s name (I don’t mean to access directly to the camera, but to ask the Milestone server to “stream” the content of “Camera xxx”?
Today is the day I’ve to present the demo, and this part is lovely missing!
Thanks
You need to get hold of an Item (or at least its FQID) to be able to stream it. If you want to do that based on the name you can do it using the Configuration.GetItemsBySearch method, but it can be rather time consuming on larger systems, so it is recommended to use other approaches (e.g. using ItemPicker to make user select it or by storing the FQID and lookup based on that).
It is unclear to me what you mean by “ask the Milestone server to stream”, so I cannot give you a specific answer on that, but we have classes/controls for getting the stream in various formats or for displaying it (like the ImageViewerWpfControl).
I try to explain what I mean… I’ve seen in the demo you use a ItemPicker and double click on the camera, that’s good. for the demo I’m strugglying I don’t have the user to select the camera. An event is fired from a source and it should pass the camera name (or an if there’s one), such info is mapped in a file in the form . about the “ask the Milestone server to stream” as I’ve read there’s no direct access to the camera, I’ve to pass from the server, is it right?
If the event could pass the objectId (GUID) of the camera that would be better, but if only name is available you should be able to use the GetItemsBySearch.
Regarding the camera access streams are always going through the server, yes. What I did/do no understand is what you mean by stream: Do you mean that you want to show video to the user in your application, or just receive it for some purpose, or that you simply just want the server to start retrieving and recording the video from the camera?
The idea is , the sensor signals an event, the application should popup the stream from the camera associated and show to the user
Excuse me and if I’m able to pass the objectId, what method should I call? and how do I get the objectId? from the Milestone client I only see the camera name
That was primarily if you at some point did the selection from code. If you don’t do that stick to the name and use Configuration.GetItemsBySearch