You are viewing an archive of the old fxhome.com forums. The community has since moved to hitfilm.com.

Play internet flv directly

Posted: Sun, 31st May 2009, 9:05pm

Post 1 of 9

aldo12xu

Force: 200 | Joined: 6th Feb 2008 | Posts: 6

VideoWrap User

Gold Member

I've just started using Video Wrap to create content for my website. I like the player templates that come with Video Wrap. My problem is that I have a series of videos I'd like to list in table format. Rather than having each video listed as a link to the "index" file that Video Wrap generates, is it possible to have to have it set up so that when someone comes to my video page, they see the Video Wrap template player for each video all at once? That way they can play the videos directly without being taken to a separate page.

I'm basically looking at embedding the videos the same way you can for YouTube videos, as I did on our MySpace site:

www.myspace.com/tobesceneproductions

Thanks in advance,
Aldo.
Posted: Mon, 1st Jun 2009, 10:32am

Post 2 of 9

Simon K Jones

Force: 27955 | Joined: 1st Jan 2002 | Posts: 11683

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User FXhome Movie Maker FXpreset Maker Windows User

FXhome Team Member

If you edit the index.html file that VideoWrap produces you should be able to simply take the HTML and put it into your own page design.
Posted: Tue, 2nd Jun 2009, 12:58am

Post 3 of 9

aldo12xu

Force: 200 | Joined: 6th Feb 2008 | Posts: 6

VideoWrap User

Gold Member

Well, I looked at the source code for the Index html page and just copied and pasted all that into my video page. But it didn't work:

http://www.tobescene.ca/videosample.html

Here's the code I copied. I'm not really good at this sorta stuff, so if you notice anything that should be changed please let me know.

<span class="txt_content">Here's our latest video<br>
<br>






<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="flvController.js"></script>

<table align="center" border="0" cellpadding="0" cellspacing="0">

<tbody><tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="tl">&nbsp;</td>
<td class="t"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr>
<td class="tBg"><div class="title">URBAN BLIGHT Rancho Relaxo 2009</div></td>
<td class="t" width="10">&nbsp;</td>
</tr>
</tbody></table></td>
<td class="tr">&nbsp;</td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td class="content"><div class="video">

<div id="player1" style="height: 180px; background-color: white;">Visit www.adobe.com and get Flash now!</div>
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","mpl","320","180","7");
s1.addParam("allowfullscreen","true");
s1.addParam("bgcolor","#ffffff");
s1.addVariable("file","videowrap.flv");
s1.addVariable("image","videowrap.jpg");
s1.addVariable("enablejs","true");
s1.addVariable("javascriptid","mpl");
s1.addVariable("displayheight","180");
s1.addVariable("autostart","false");
s1.addVariable("overstretch","false");
s1.addVariable("lightcolor","0x4b7dff");
s1.addVariable("backcolor","0x212121");
s1.addVariable("frontcolor","0xCCCCCC");
s1.addVariable("bufferlength","10");
s1.addVariable("smoothing","false");
s1.write("player1");
</script>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="controllerLeft"><img src="spacer.gif" style="float: left;" height="10" width="10"></td>
<td class="controllerRight"></td>
</tr>
</tbody></table></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="bl">&nbsp;</td>
<td class="b">&nbsp;</td>

<td class="br">&nbsp;</td>
</tr>
</tbody></table></td>
</tr>
</tbody></table>
<p class="tagline">Encoded and presented by <a href="http://fxhome.com/videowrap/">FXhome VideoWrap!</a></p>
<br>
</span></div>
Posted: Tue, 2nd Jun 2009, 8:58am

Post 4 of 9

malone

Force: 18242 | Joined: 21st Mar 2001 | Posts: 1477

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User Windows User

FXhome Team Member

You need to upload the swfobject.js and flvController.js javascript files to the same directory.
Posted: Tue, 2nd Jun 2009, 3:15pm

Post 5 of 9

aldo12xu

Force: 200 | Joined: 6th Feb 2008 | Posts: 6

VideoWrap User

Gold Member

Are those scripts in the same folder that Video Wrap was pointed to when it rendered the flash files? If so, I'll double check it when I get home tonight as I uploaded the folder in it's entirety.
Posted: Tue, 2nd Jun 2009, 4:43pm

Post 6 of 9

malone

Force: 18242 | Joined: 21st Mar 2001 | Posts: 1477

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User Windows User

FXhome Team Member

Yes, those files should be in the same folder that Video Wrap was pointed to.

They don't appear to have been uploaded to your website. When they are the following links will work;

http://www.tobescene.ca/swfobject.js
http://www.tobescene.ca/flvController.js

Currently I get a 404 when I access those.
Posted: Tue, 2nd Jun 2009, 7:35pm

Post 7 of 9

aldo12xu

Force: 200 | Joined: 6th Feb 2008 | Posts: 6

VideoWrap User

Gold Member

OK, I get it now. I'll try that tonight. Thanks!
Posted: Tue, 2nd Jun 2009, 11:14pm

Post 8 of 9

aldo12xu

Force: 200 | Joined: 6th Feb 2008 | Posts: 6

VideoWrap User

Gold Member

Well, getting there......I put the scripts in the correct directory, as the 404 message no longer comes up. But still, the video doesn't show up.

Maybe it's the way my directories are set up:

public_html > "videos" folder > "videoname" folder

The "videoname" folder has all the files that Video Wrap generates, including the scripts. What I did was move the scripts from the "videoname" folder and put them in the "public_html" directory.
Posted: Wed, 3rd Jun 2009, 8:09am

Post 9 of 9

malone

Force: 18242 | Joined: 21st Mar 2001 | Posts: 1477

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User Windows User

FXhome Team Member

Looks like the javascript files are in the right place now. But you're missing a lot of other files as well.

Try moving everything from your "videoname" folder to the "public_html" folder. That should help.

Specifically the following files are missing
http://www.tobescene.ca/videowrap.flv
http://www.tobescene.ca/videowrap.jpg
http://www.tobescene.ca/flvplayer.swf