rejetto forum

Webcam on HFS

0 Members and 1 Guest are viewing this topic.

Offline pixturesk

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
I am running Win98SE on a P3 600, 256megs, cable internet. Can I use the video from a webcam on HFS so when people go  to my HFS, they can see me while I am talking to them on the telephone, these people are not using VOIP, so I just want them to see me. I am not much of a techie, so please make your reply easy to follow. Thanks


Offline bacter

  • Operator
  • Tireless poster
  • *****
    • Posts: 681
    • View Profile
you can try with 'yawcam' and put a link to the generated page in hfs.
your computer has no brain - use your own !


Offline pixturesk

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
Thanks bacter but "yawcam" requires at least Win 2000 to work.


Warp

  • Guest
Hi,

for a video this should work with most browsers.
The video folder / file must be inside the HFS - VFS !

<html>
<head>
<title>Bla, bla</title>
</head>
<body>
<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" standby="Loading" width="320" height="240">
<param name="fileName" value="/itsme.avi">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<param name="showControls" value="true">
<param name="Volume" value="100">
<embed type="application/x-mplayer2" src="/itsme.avi" name="MediaPlayer" width="320" height="240" autostart="1" showcontrols="1" volume="100"></embed>
</object>
</body>
</html>

The problem could be that the video size is growing so i don't know if this is working correct.
I assume you use an USB-Webcam or a Notebook cam.
Perhaps an IP-Cam is more comfortable.

-----

Maybe the better solution is to use an image from your webcam.
This image could be updated every second ( for example ).
The image folder / file must be inside the HFS - VFS !

<html>
<head>
<title>Bla, bla</title>

<script language="JavaScript" type="text/javascript">
<!--
function updateWebcam()
{
Dummy=String(Math.random());
Webcam=new Image();
Webcam.src="/webcam.jpg";
window.document.images[0].src=Webcam.src+'?'+Dummy;
}
-->
</script>

</head>
<body onload="setInterval('updateWebcam()',1000);">

<div><img id="Webcam" src="/webcam.jpg" alt=""></div>

</body>
</html>

The codespace and pluginspace attribute is missing in the code above because for me it's not allowed to post URL's.
You should adjust the path to your image / video file and also the width and the height.
You can see some webcams on my page.
If you offer me a accessable URL to your HFS folder with the video or image i can include some code with the URL on my page (temporary).
Then we will see what happened.
I don't own a webcam so i can't test it ...




Warp



http:
//warp2001.dyndns.org:44792


Offline pixturesk

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
Please forgive me Warp, but your reply is way too technical for me to follow. I am just looking for some simple webcam software which shows live motion of me from my webcam that I can place in the HFS Virtual Window so someone can see me while we are chatting on the telephone. Thanks.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1934
    • View Profile
    • RAWR-Designs
I would be surprised if you find any software that will run on those specifications to do the job you require. If you put XP on the system and run it in a very bare bone state (SP2, Standard Skin, only required software) you would probably get similar performance and have support for more software. I got rid of one of my old 98SE boxes cause it was just way too out dated and software support for the operating system was getting very scarce. My best advice on this would be to either hit up google or upgrade the operating system. Without going to the extreme of throwing out the computer.


Offline pixturesk

  • Occasional poster
  • *
    • Posts: 6
    • View Profile
Thanks That_Stevens_Guy. I appreciate your point but this is not that great an issue for me because I can always use Skype or some other webcam messaging system (get my people to install similar software) to accomplish a 2 way communications stream. Just thought there might be an easy solution with HFS. I am using Win98SE very successfully, am very comfortable with it, have no intentions of going to XP (certainly not Vista). If a change ever became necessary, I am looking at Mac or Linux, which I am currently experimenting with. As far as support for 98SE, there is a programmer in Australia who continues to update, hotfix, patch 98SE with a program, AutoPatcher for Win98SE, a 280 mb file, which updates all aspects of 98SE until Dec/08. Another program Revolutions Pack 7.11 changes the 98SE gui to either XP or Vista. While I have great success with both of these programs, USE THEM WITH GREAT CARE!! because they can crash your system. So my 98SE looks like Vista with the reliability of 98SE. As far as available software for 98SE, I am using Oxygen Office Professional (the larger version of Open Office), the Gimp (the Photoshop replacement) for image manipulation, both free programs, plus all free security software (Avast, Super AntiSpyware Free, Spyware Blaster, Sygate Personal Firewall, HiJack This, CCleaner) to very securely protect my computer. Just my personal experience. Thanks again.


Offline dj

  • Tireless poster
  • ****
    • Posts: 243
  • 👣 🐾
    • View Profile
    • PWAs
shows date (last-modified) of the image on mouseover



Code: [Select]
<html>
<head>
<title>mycam</title><META NAME="Author" CONTENT="DJ">
<meta name="viewport" content="width=device-width">
</head>
<body>

<img src="out.jpg" id="mypic" title="Update manually or use actual browser" style="cursor:pointer; max-width:100%">

<script>
Tmin=5;Tmax=60  //upate every 5 or 60 seconds (cam on or off)
//var t1, t  //cam
var etag1, etag=""
img=document.getElementById("mypic")
bild1=img.src

window.URL = window.URL || window.webkitURL;  // Take care of vendor prefixes.
BlobBuilder = window.MozBlobBuilder || window.WebKitBlobBuilder || window.BlobBuilder;

function req() {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'out.jpg', true);
xhr.responseType = 'arraybuffer';  //blob

xhr.onload = function(e) {
//  if (this.status == 200) {

if (BlobBuilder) {var bb = new BlobBuilder();bb.append(this.response);var blob = bb.getBlob('image/jpg'); }  //android
else var blob = new Blob([this.response], {type : 'image/jpg'});

    //var blob = this.response;
   
var t2=new Date(xhr.getResponseHeader('Last-Modified'));
//if (t2-t1!=0) t=(t2-t1)/1000; t1=t2  //todo: var. framerate, LMod updates, when cam is on!
var etag2=xhr.getResponseHeader('ETag')  //Content-Length
if (etag1 && etag2!=etag1) {etag=new Date(); bild1=img.src}; etag1=etag2
img.title = t2.toLocaleString() + " mycam\n"
 +etag.toLocaleString()+" changed\n"
 + new Date().toLocaleString() + " ("+T+"s) reload\n<"
T=(new Date()-t2 > Tmax*1000)?Tmax:Tmin; document.title=(T==Tmax)?"bye-cam":"yaw-cam"

    img.onload = function(e) {
      //window.URL.revokeObjectURL(img.src); // Clean up after yourself.  //uncommend, if not downloadable
    };
    img.src = window.URL.createObjectURL(blob)

//  }
};

xhr.send();

setTimeout(function(){req()},1000*T)
}

if(location.search) Tmin=location.search.substr(1)
T=Tmin
req();
img.onclick=function(){this.src=bild1}; //show last image

</script>
</body>
</html>

For upload you can use http://www.rejetto.com/forum/html-templates/capture-and-upload-images-from-your-webcam/
« Last Edit: February 11, 2014, 12:12:51 PM by dj »


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link

Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
more intailed on how and what on webpage...

example and where you need to start:

What you need to do it?
To do video conferencing we need to do five things:

1. Set up video element in an html page:
 Collapse | Copy Code
<video></video>
2. Access local devices (camera,microphone):

 Collapse | Copy Code
navigator.getUserMedia();
3.  Display a/v from local or remote peer:

 Collapse | Copy Code
createObjectURL

4. Connect to remote peers

 Collapse | Copy Code
PeerConnection
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
you will have to do some editing, but another user has posted something that may put you on a good direction:
http://www.rejetto.com/forum/html-templates/capture-and-upload-images-from-your-webcam/msg1058770/#msg1058770
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 901
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
you can use this here:
http://www.testwebcam.com/

and download the flash files that it uses... via internet save website as (which wilg et the resources and revamp the html page...

then you will be using the webcam via flash...

seeattachment
Files i try to keep and share can be found on my google drive:

https://drive.google.com/drive/folders/1FOWi3Gqaldld6JLXvZ-biDv4RSguf0IC