PDA

View Full Version : Help understanding code - video spokesperson



krlewis67
Apr 14th, 2010, 10:13 PM
Hi I am new to creating my own website and I have used a template with index.php.

I am trying to put a video spokesperson on my website like this one http://jenhbatson.com just the video portion type not the contact at the end.

I reviewed the source below and I made my own transparent video thru premiere pro - however when I switch out my http and video I get an error that the sfplayer is not defined.

Can anyone tell me what I am doing wrong or what script I need to add to my server so I can use this scripting? I like it because it is easy to move the image around the webpage.

here is the script: if you test it and add to your page it shows the image but not when you swap out your http and swf or flv.

<script src="http://media.SpokespersonFactory.com/scripts/sfplayer.js" type="text/javascript" language="javascript" ></script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<script language="javascript" type="text/javascript">
var video=new sfplayer();
video.src='http://media.SpokespersonFactory.com/cust/jennifer1.swf';
video.height=390;
video.width=390;
video.Location.X=90;
video.Location.Y=0;
video.positionFrom='fromTop';
video.positionHorizontalFrom='fromLeft';
video.ReferenceID='imgReference';
video.Intialize();
function hideWhenFinished() {
video.HideWhenFinished();
}
</script>


thanks,
krlewis67:)

impactsp
Dec 3rd, 2010, 03:18 PM
The line code: video.src='http://media.SpokespersonFactory.com/cust/jennifer1.swf'

jennifer1.swf is just to display the video. There is code within the swf that link to a flv file.

The flv file is the actual video. Both are needed in order to display the video properly.

My company offers video spokespeople (http://www.impactspokesperson.com).

Mike LoBrutto
Impact Spokesperson

liveface
Jun 2nd, 2011, 09:06 PM
The best thing to do is type an the code you are looking for in a search engine. They will give you an example code. Then you will be able to integrate your video into that code. Having a virtual spokesperson (http://www.livefaceonweb.com/) is an awesome tool for any site.