Camerafeed is not refreshing in SamsungTV browser

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
najtram
Posts: 62
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.9700
Location: Netherlands
Contact:

Camerafeed is not refreshing in SamsungTV browser

Post 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=##' }
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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?
User avatar
najtram
Posts: 62
Joined: Wednesday 26 April 2017 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: v4.9700
Location: Netherlands
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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!
RFLink Gateway → 433Mhz/KAKU switches
Z-Wave → Z-Stick Gen5+
ZigBee → ConBee II
Bluetooth → Soma Smart Shades
Opentherm Gateway → Remeha iSense - Tzerra boiler
ESP8266+CC1101 → ITHO ecofan RFT
P1 cable → DSMR 2.2+ Landys +gyr E350
LAN → Enphase Envoy
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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!
yfands
Posts: 67
Joined: Monday 04 July 2016 10:16
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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!
yfands
Posts: 67
Joined: Monday 04 July 2016 10:16
Target OS: Raspberry Pi / ODroid
Domoticz version: latest B
Location: Netherlands
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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..
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Camerafeed is not refreshing in SamsungTV browser

Post 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 :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest