Offline image comes from?

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Mike Scott
Posts: 30
Joined: Fri Feb 15, 2013 6:47 pm

Offline image comes from?

Postby Mike Scott » Sun Feb 24, 2013 12:55 am

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?

Advertisement



z3r0c00l12
Moderator
Posts: 1210
Joined: Wed Jan 14, 2009 3:50 am

Re: Offline image comes from?

Postby z3r0c00l12 » Sun Feb 24, 2013 1:33 am

/.yawcam/stream/img/offline.jpg

Mike Scott
Posts: 30
Joined: Fri Feb 15, 2013 6:47 pm

Re: Offline image comes from?

Postby Mike Scott » Sun Feb 24, 2013 3:24 am

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..

z3r0c00l12
Moderator
Posts: 1210
Joined: Wed Jan 14, 2009 3:50 am

Re: Offline image comes from?

Postby z3r0c00l12 » Sun Feb 24, 2013 4:14 am

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.)

Mike Scott
Posts: 30
Joined: Fri Feb 15, 2013 6:47 pm

Re: Offline image comes from?

Postby Mike Scott » Sun Feb 24, 2013 10:57 am

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.

malun
Site Admin
Posts: 1495
Joined: Sun Jan 04, 2004 1:29 pm

Re: Offline image comes from?

Postby malun » Sun Feb 24, 2013 11:38 am

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

Mike Scott
Posts: 30
Joined: Fri Feb 15, 2013 6:47 pm

Re: Offline image comes from?

Postby Mike Scott » Sun Feb 24, 2013 1:33 pm

My sanity remains intact :-) Thanks

malun
Site Admin
Posts: 1495
Joined: Sun Jan 04, 2004 1:29 pm

Re: Offline image comes from?

Postby malun » Sun Feb 24, 2013 2:17 pm

lol :D

JPH12345
Posts: 1
Joined: Sat Sep 07, 2013 2:05 pm

Re: Offline image comes from?

Postby JPH12345 » Sat Sep 07, 2013 2:15 pm

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

z3r0c00l12
Moderator
Posts: 1210
Joined: Wed Jan 14, 2009 3:50 am

Re: Offline image comes from?

Postby z3r0c00l12 » Wed Sep 11, 2013 11:25 pm

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.

Thomas Keukens
Posts: 11
Joined: Fri Jan 13, 2017 5:06 pm

Re: Offline image comes from?

Postby Thomas Keukens » Mon Jan 23, 2017 6:16 pm

I have the same problem: offline.jpg is not shown. I have followed all the above instructions. Without result.


Return to “General”

Who is online

Users browsing this forum: No registered users and 23 guests