Page 1 of 1

Offline image comes from?

Posted: Sun Feb 24, 2013 12:55 am
by Mike Scott
I would like to modify the offline image to be a little more informative. The one that comes up when you disable streaming. But cannot find it. Have looked in all the /img/ folders both in /program files/yawcam and /.yawcam/

Anyone know where it lives?

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 1:33 am
by z3r0c00l12
/.yawcam/stream/img/offline.jpg

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 3:24 am
by Mike Scott
That is where I expected it to be. But I modified that file, and no change. I modified every copy of Offline.jpg to no avail. I cleared out the cache on the client end PC, it still displays the original image. I tried another PC as client to no avail (one that had not previously seen that site). I tried modifying some of the other .jpg in /.yawcam/stream/ and they take effect, but not the Offline.jpg which leads me to assume it is some where else.

lost..

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 4:14 am
by z3r0c00l12
Can you list the path to each offline.jpg you modified?

I found these locations on my system:
\.yawcam\stream\img\
\Program...\Yawcam\img\
\Program...\Yawcam\stream\img\
\Program...\Yawcam\.yawcam\stream\img\ (I don't remember if I created this one or not.)

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 10:57 am
by Mike Scott
Did a search on C:/ (only HDD in the pc) Note: I did a folder clean up so have the original in Yawcam1. I have the same problem in yacam 1 and 2.

C:/Program Files/Yawcam1/img
C:/Program Files/Yawcam2/img
C:/Program Files/Yawcam1/streaming/img
C:/Program Files/Yawcam2/streaming/img

C:/yacamsettings/Yawcam1/img
C:/yacamsettings/Yawcam1/.yawcam/img
C:/yacamsettings/Yawcam1/stream/img
C:/yacamsettings/Yawcam1/.yawcam/stream/img
C:/yacamsettings/Yawcam2/.yawcam/stream/img
C:/My Computer

The last one is odd. In search it lists as located at C:/My Computer Whilst file name is Offline.jpg it has the IE icon, not jpg icon. If I open it I see a modified image. But right click and properties it says it is at
C:/yacamsettings/Yawcam2/stream/img and it will not delete. I have no recollection of creating that one, though it opens as a modified image.

All the found files are modified, but still the original comes up at the client end when streaming is stopped.

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 11:38 am
by malun
When you are using the stream output with the javascript stream type, the offline image is not loaded from your computer.
It's loaded from http://www.yawcam.com. The reason for this is that viewer will not get any feedback otherwise when for example the Internet connection is broken.

You can however change the image. Change the image as you want. Upload it somewhere at the Internet. It could be a webserver you control or a image service like http://imageshack.us/

Now find the template for the javascript stream page:
C:\Users\username\.yawcam\stream\template_js.html

Edit this file. Find the part looking like this:

Code: Select all

function showErrorImage()
{
	clearTimeout(t_);
	clearInterval(i_);
	document.images.camImg.onload = "";
	document.images.camImg.src = "http://www.yawcam.com/offline.jpg";
	window.status = "Webcam offline";
}
Change the url to the offline.jpg to the url where you uploaded and are hosting your version of the image.

/malun

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 1:33 pm
by Mike Scott
My sanity remains intact :-) Thanks

Re: Offline image comes from?

Posted: Sun Feb 24, 2013 2:17 pm
by malun
lol :D

Re: Offline image comes from?

Posted: Sat Sep 07, 2013 2:15 pm
by JPH12345
Hi Guys

In the stream folder, I changed the destination url in template_js.html to my ftp server where my offline.jpg is stored, but I'm still seeing the Yawcam offline.jpg! (Code below)

clearTimeout(t_);
clearInterval(i_);
document.images.camImg.onload = "";
document.images.camImg.src = "http://www.gr8voices.com/offline.jpg";
window.status = "Webcam offline";


I also changed the url in the template_mjpg.html - but still get the yawcam offline.jpg. (Code below)


function showErrorImage(onError)
{
clearInterval(i_);
document.images.camImg.onload = "";
document.images.camImg.src = "http://gr8voices.com/offline.jpg";
window.status = "Webcam offline";
if(onError){
if(navigator.appName == "Microsoft Internet Explorer"){
alert('Microsoft Internet Explorer can not view MJPEG streams.\nPlease change browser.');
}
}
}

I can't find any further instances of the yawcam offline.jpg and am now stumped! Can anyone help?

Many thanks

JP

Re: Offline image comes from?

Posted: Wed Sep 11, 2013 11:25 pm
by z3r0c00l12
Assuming you restarted Yawcam for the changes to take effect, the only other thing I can see is that there is more than one template_js.html and the wrong one was modified.

Re: Offline image comes from?

Posted: Mon Jan 23, 2017 6:16 pm
by Thomas Keukens
I have the same problem: offline.jpg is not shown. I have followed all the above instructions. Without result.