GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   How do I get multiple videos per page??? (https://gfy.com/showthread.php?t=896020)

Rio69 03-26-2009 01:07 AM

How do I get multiple videos per page???
 
I´m setting up a website and want to have multiple sample video trailers on each tour page. I´m using JW FLV Media Player. So far, I can only put one...
can someone tell me how to do it, or is it possible with what I´m using.
thanks
:)

daniel_webcams 03-26-2009 03:06 AM

First you have to place the external java script on the top of the page, do not include that in the loop when you display the results.
--------------------------------------------
<script type="text/javascript" src="swfobject.js"></script>
--------------------------------------------
Secondary if you want to display multiple players on one page you have to make each div (<div id="container">) to be unique and each java script (s1.addParam , s1.write("container")......etc...) also unique, this way each java script that start the player by parsing the parameters must have his own value (and be unique) and must be correlated with the div where the player is loading.
To implement that is very simple when you get the data from the database you should place the primary key near this parameters (<div id="container_$line['id']">) also in the java script lines (s$line['id'].addParam("flashvars","file=video.flv&image=previe w.jpg");
s$line['id'].write("container_$line['id']");) so this way you will have multiple different div's with multiple different values.

Take a look at the examples below :
--------------------------------------------------------
<div id="container_1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var s1 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allownetworking","all");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=video.flv&image=prev iew.jpg");
s1.write("container_1");
</script>
-----------------------------------------------------------------------------------
<div id="container_2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>

<script type="text/javascript">
var s2 = new SWFObject("player-viral.swf","ply","500","400","9","#FFFFFF");
s2.addParam("allowfullscreen","true");
s2.addParam("allownetworking","all");
s2.addParam("allowscriptaccess","always");
s2.addParam("flashvars","file=video.flv&image=prev iew.jpg");
s2.write("container_2");
</script>
-----------------------------------------------------------------------------------------
and so on.....

Hit me up on ICQ if you need more info...

Hope to be helpful!:thumbsup

brassmonkey 03-30-2009 07:57 AM

damn thats helpful

AdultSoftwareSolutions 04-01-2009 12:11 AM

well written Daniel

daniel_webcams 04-01-2009 05:12 AM

Thanks guys...

John Marco 04-13-2009 11:58 PM

Webcams.com affiliate reps are here to help

papagmp 04-21-2009 12:01 AM

Nice tip daniel_webcams - basically what we did on our latest tour.

Rio69 05-17-2009 02:09 AM

great help, thanks a lot


All times are GMT -7. The time now is 12:29 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123