If you want to see the pictures of your intercom camera in your Snom phone, you can do this via Action URL.
Snom devices do not support a video source, but only kind of "Motion Jpeg" (MJPEG) with approx. 5 - 10 frames per second.
There are different Use Cases. If you want to see a Video Source by pressing a Key, you could follow the Instructions for "Manually via function keys".
If you want to see who has rang the doorbell, please follow up the Instructions Below: "How can I see the door camera when it rings".
The Action URL must point to a XML File with some Informations about the offered Video Source.
The XML File should look similar to this.
An explicit timeout can not be set but by using a variable this goal can be achived. When the counter reaches the limit the phone will call mb_exit which returns the phone to the idle screen.
The condition in the given XML tests if the variable "count" is less then (lt) 2000. If so, the camera.xml will be called again and the count variable (provided in URL) will be increased by 200.
It makes sense to increase this variable by the given millisecond attribute of the fetch element so the number of iteration multiplied by 200millisecond will give exactly the timeout. Should be the condition not true anymore (the count variable bigger then 2000 in this example) the "else" will be executed and the phone will wait 1000 millisecond and fetch the "phone://mb_exit" URL, which returns the phone to the idle screen.
The count variable must be first initialised, so in the phone the following URL needs to be configured for an Action-Link: http://192.168.89.100/camera.xml#var:count=0. This will initialise the value of count to 0.
Setting Timeout - 2
The previous example requires the setting of the count variable in the URL, which is sometimes not possible.
For this the following XML can be used. This has the same effect and a bit more simple:
This example will load the mentioned webcam.jpg in every 200ms and will put it on the screen by changing the horizontal position to count / 10 (20,40,60...).
A very common usage of a "Video Streaming" shown into a Snom Deskphone is the integration of an Intercom System. This comes very often, not only with the possibility to talk to the Person who rang your Doorbell, if there is a Video Camera attached to this System you first can have a look on the Person in front of your door, before responding or open the door.
Snom D-Series Phones support an Action URL which is called automatically if a call is signalized to the phone and the number (along with the Action URL) is configured in the local phonebook (TBook). This feature is originally created for doorbells, which can display MotionJPEG, or with some Doorbells, which support Snom XML Minibrowser.
However not all of them use these approaches and some of them only provide a JPEG (or PNG) image, which is a static image and needs to reloaded regularly. Since Snom suppors and prefers MJPEG, this would cause a static image ot the display of the phone. For this the attached Minibrowser Wrapper can be used to periodically reload the image.
Since the version 10.1.73.16 this XML can be loaded as "custom_xml" directly to the phone and can be reused within the TBook for the Action URL;
To do so the URL of the Camera (for instance http://ip.camera/image.jpg) needs to be set like this file:///xml/gui/custom_xml.xml#var:url=http://ip.camera/image.jpg. In this case the local XML is executed and will load the image provided in argument in every 300 miliseconds.
If the CANCEL button is pressed, or the cal is taken the phone switches into normal display mode and will go back to Idle or display the connected call itself respectivly.