Page 1 of 1

Camerafeed is not refreshing in SamsungTV browser

Posted: Friday 08 March 2019 20:35
by najtram
I'm a bit stucked, I managed to get a camera feed working. My target platform to show Dashticz on is my Samsung television.
Somehow my webcamfeed is refresing untill an image is loaded and then it looks like it thinks it is cached, because it is not reloading anymore.

Browsers I tested (on MacOS Mojave):
Firefox: Not working.
Chrome: Not working.
Safari: Working!
Samsung TV: Not working. <--- This is the target platform.

Could someone verify if you manage to get a working (camerafeed) situation with a browser on SamsungTV.
-Camera I use is a Wanscam.
-Browser is Samsung Smart TV Webbrowser 2.1.2.0921202 (TizenBrowser)

I see a similar problem in this post: https://www.domoticz.com/forum/viewtopi ... 88#p201762 (except my credentials are not embedded in the url in the same way.

Code:

Code: Select all

buttons.webcam5 = { width: 6, isimage: true, refreshimage: 2000, refreshurl: 2000, image: 'http://192.168.1.51/web/auto.jpg?-usr=##&-pwd=##' }
buttons.webcam6 = { width: 6, isimage: true, refreshimage: 1000, refreshurl: 1000, image: 'http://192.168.1.51/web/auto.jpg?-usr=##&-pwd=##' }

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Friday 08 March 2019 22:05
by Lokonli
najtram wrote: Friday 08 March 2019 20:35 I'm a bit stucked, I managed to get a camera feed working. My target platform to show Dashticz on is my Samsung television.
Somehow my webcamfeed is refresing untill an image is loaded and then it looks like it thinks it is cached, because it is not reloading anymore.

Browsers I tested (on MacOS Mojave):
Firefox: Not working.
Chrome: Not working.
Safari: Working!
Samsung TV: Not working. <--- This is the target platform.

Could someone verify if you manage to get a working (camerafeed) situation with a browser on SamsungTV.
-Camera I use is a Wanscam.
-Browser is Samsung Smart TV Webbrowser 2.1.2.0921202 (TizenBrowser)

I see a similar problem in this post: https://www.domoticz.com/forum/viewtopi ... 88#p201762 (except my credentials are not embedded in the url in the same way.

Code:

Code: Select all

buttons.webcam5 = { width: 6, isimage: true, refreshimage: 2000, refreshurl: 2000, image: 'http://192.168.1.51/web/auto.jpg?-usr=##&-pwd=##' }
buttons.webcam6 = { width: 6, isimage: true, refreshimage: 1000, refreshurl: 1000, image: 'http://192.168.1.51/web/auto.jpg?-usr=##&-pwd=##' }
Caching of the url is indeed probably causing the problem. Dashticz contains two methods to prevent caching, which are enabled by adding the forcerefresh parameter to the button definition.

forcerefresh:1
A t=<timestamp> parameter is added to the url

forcerefresh:2 (new feature in Dashticz beta 2.5.7)
PHP is used to prevent caching.
(you must have php-support enabled on your Dashticz server)

Can you test both methods and report whether one of them is working for you?

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Friday 08 March 2019 22:23
by najtram
Thanks Lokonni,

Forcerefresh is the solution! This solved my problem. It is working on TV, Firefox and chrome now!

I didn't know/understood how to use the parameter by your hint, so I Googled forcerefresh dashticz. Answer I found used the True parameter, so no need for 1 or 2, just: forcerefresh:true

For other readers:

Code: Select all

buttons.webcam6 = { width: 12, forcerefresh:true, isimage: true, refreshimage: 1000, refreshurl: 1000, image: 'http://192.168.1.51/web/auto.jpg?-usr=###&-pwd=###' }

Thanks again!

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Friday 08 March 2019 22:40
by Lokonli
najtram wrote: Friday 08 March 2019 22:23 Thanks Lokonni,

Forcerefresh is the solution! This solved my problem. It is working on TV, Firefox and chrome now!

I didn't know/understood how to use the parameter by your hint, so I Googled forcerefresh dashticz. Answer I found used the True parameter, so no need for 1 or 2, just: forcerefresh:true

For other readers:

Code: Select all

buttons.webcam6 = { width: 12, forcerefresh:true, isimage: true, refreshimage: 1000, refreshurl: 1000, image: 'http://192.168.1.51/web/auto.jpg?-usr=###&-pwd=###' }

Thanks again!
I didn't write the release notes for 2.5.7 yet :)
forcerefresh:true should give the same behavior as forcerefresh:1

Good to know forcerefresh:true works for you!

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Saturday 06 April 2019 17:16
by yfands
Hello,

Iam using Dashticz 2.5.10 and firefox, allways the latest version.
adding a camera does not refresh the images as stated in the topic.
forcerefresh:true aka forcerefresh:1 isnt doing it for me. mij camera doenst accept the timestamp which is added by using forcerefresh:true
and forcerefresh:2 does nothing

any other solutions?

I found the solution myself, by taking a look at the main.js file I noticed there is another parameter called cheapwebcam
So if I add forcerefresh:1,cheapwebcam:true all is working as it should.


dear developers, can we find this somewhere in the releasenotes? I could't find it.

regards
Frank

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Sunday 07 April 2019 21:34
by Lokonli
yfands wrote: Saturday 06 April 2019 17:16 Hello,

Iam using Dashticz 2.5.10 and firefox, allways the latest version.
adding a camera does not refresh the images as stated in the topic.
forcerefresh:true aka forcerefresh:1 isnt doing it for me. mij camera doenst accept the timestamp which is added by using forcerefresh:true
and forcerefresh:2 does nothing

any other solutions?

I found the solution myself, by taking a look at the main.js file I noticed there is another parameter called cheapwebcam
So if I add forcerefresh:1,cheapwebcam:true all is working as it should.


dear developers, can we find this somewhere in the releasenotes? I could't find it.

regards
Frank
It's pretty new functionality. Release notes were not written yet.

Good to hear that it works for you!

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Monday 08 April 2019 11:19
by yfands
Lokonli wrote: Sunday 07 April 2019 21:34
yfands wrote: Saturday 06 April 2019 17:16 Hello,

Iam using Dashticz 2.5.10 and firefox, allways the latest version.
adding a camera does not refresh the images as stated in the topic.
forcerefresh:true aka forcerefresh:1 isnt doing it for me. mij camera doenst accept the timestamp which is added by using forcerefresh:true
and forcerefresh:2 does nothing

any other solutions?

I found the solution myself, by taking a look at the main.js file I noticed there is another parameter called cheapwebcam
So if I add forcerefresh:1,cheapwebcam:true all is working as it should.


dear developers, can we find this somewhere in the releasenotes? I could't find it.

regards
Frank
It's pretty new functionality. Release notes were not written yet.

Good to hear that it works for you!
Cool, kinda spoiler alert ;-), but Iam happy to it works too, thanks for the awesome work, thumbs up..

Re: Camerafeed is not refreshing in SamsungTV browser

Posted: Monday 08 April 2019 21:56
by Lokonli
yfands wrote: Monday 08 April 2019 11:19
Lokonli wrote: Sunday 07 April 2019 21:34
yfands wrote: Saturday 06 April 2019 17:16 Hello,

Iam using Dashticz 2.5.10 and firefox, allways the latest version.
adding a camera does not refresh the images as stated in the topic.
forcerefresh:true aka forcerefresh:1 isnt doing it for me. mij camera doenst accept the timestamp which is added by using forcerefresh:true
and forcerefresh:2 does nothing

any other solutions?

I found the solution myself, by taking a look at the main.js file I noticed there is another parameter called cheapwebcam
So if I add forcerefresh:1,cheapwebcam:true all is working as it should.


dear developers, can we find this somewhere in the releasenotes? I could't find it.

regards
Frank
It's pretty new functionality. Release notes were not written yet.

Good to hear that it works for you!
Cool, kinda spoiler alert ;-), but Iam happy to it works too, thanks for the awesome work, thumbs up..
We will remove cheapwebcam:true and merge it with forcerefresh:1. Wait for the 2.5.11 version, and the release notes :)