Offline image comes from?
-
- Posts: 30
- Joined: Fri Feb 15, 2013 6:47 pm
Offline image comes from?
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?
Anyone know where it lives?
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Offline image comes from?
/.yawcam/stream/img/offline.jpg
-
- Posts: 30
- Joined: Fri Feb 15, 2013 6:47 pm
Re: Offline image comes from?
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..
lost..
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Offline image comes from?
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.)
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.)
-
- Posts: 30
- Joined: Fri Feb 15, 2013 6:47 pm
Re: Offline image comes from?
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.
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?
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:
Change the url to the offline.jpg to the url where you uploaded and are hosting your version of the image.
/malun
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";
}
/malun
-
- Posts: 30
- Joined: Fri Feb 15, 2013 6:47 pm
Re: Offline image comes from?
My sanity remains intact Thanks
Re: Offline image comes from?
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
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
-
- Moderator
- Posts: 1210
- Joined: Wed Jan 14, 2009 3:50 am
Re: Offline image comes from?
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.
-
- Posts: 11
- Joined: Fri Jan 13, 2017 5:06 pm
Re: Offline image comes from?
I have the same problem: offline.jpg is not shown. I have followed all the above instructions. Without result.