(03-14-2017 03:18 PM)jolouis Wrote: @Tobias: Yup it works if you just want to take a quick peak at things and are not after actual video.
Basically I took the sample "display full screen image" XML browser file from the Yealink docs. Instead of an actual image file I pointed the URL to a PHP script. The PHP script grabbed a frame from the IP camera using the camera's snapshot API (we were using a Hikvision that has this feature), runs a quick resize on it, and then outputs it as a JPEG for the XML browser to display. We did find that the XML document itself needed to be generated by PHP also as the URL needed to have a random query string, otherwise the phone cached the image and always just displayed the same thing.
So it works, but not ideal by any means. If Yealink were to at least support MJPEG in their XML browser, or heck even let their XML browser grab the first frame of an MJPEG file and then give up, it would make this task much easier.
Yeah, hopefully Yealink will update their Firmware with some useful Addon Functions like this soon.
Could you tell me the code you used for that? Im not that experienced in coding php so testing this fuction would be much easier with modifying your code than create it from scratch.
thanx in advance.
cheers