Page 1 of 1

Windows edge, wants to download live view camera

Posted: Sunday 05 May 2019 14:44
by hoeby
I have a windows edge thing, but hopefully somebody can help me here.
On my dashboard i made a button which transfers me to a live view of a camera which is in domoticz.

But instead of opening the live view, windows edge wants to download the view.
This is not what i am looking for, i want it to view, not download.

Does somebody know how to setup, that windows edge will view the live view?

Re: Windows edge, wants to download live view camera

Posted: Wednesday 15 May 2019 20:44
by zicht
hoeby wrote: Sunday 05 May 2019 14:44 I have a windows edge thing, but hopefully somebody can help me here.
On my dashboard i made a button which transfers me to a live view of a camera which is in domoticz.

But instead of opening the live view, windows edge wants to download the view.
This is not what i am looking for, i want it to view, not download.

Does somebody know how to setup, that windows edge will view the live view?
This is not only in edge browser. You linked to a snapshot or something like that making the browser trying to download it.

I made a template (HTML) for this purpose for my camera and placed it in Domoticz\www\templates
That way it becomes available in one of the tabs in dutch called "eigen". that page contains the live view with fast snapshots not a stream.

Code: Select all

<p align="center">
   <a href="https://xx.xx.xx.xx:xxxx/camsnapshot.jpg?idx=7"><img  id="camfeed7"  src="https://xx.xx.xx.xx:xxxx/camsnapshot.jpg?idx=1&amp;count=167?t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 750)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 10000)' style="border: 1px solid rgb(30, 40, 50); width: 83%; max-width: 96%;"></a>
</p>
replace xx.xx.xx.xx by the domoticz ip and xxxx by the domoticz port. Do not forget de IDX of the cam (idx=1) if needed.
The script is refreshing the snapshot every 750 mS and timehouts after 10000 mS

The idx is logical , first one=1 second=2, but if you want to check you can inspect the code of the camera view in domoticz :)

Hope it points you into a working solution. The nice thing is you do not need to put in credentials but using the domoticz logon mechanism.
I even redirect depending on the Ip calling it e.g. local or external acces.

Re: Windows edge, wants to download live view camera

Posted: Thursday 16 May 2019 8:10
by hoeby
I view the camera not with a domoticz link.

But i managed the problem.
When i want to view the camera with IFrame, then it wants to download.
I changed it to IMG URL, than it works.