How do I get multiple videos per page???

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rio69
    Registered User
    • Oct 2005
    • 35

    #1

    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
    Confirmed User
    • Nov 2008
    • 2491

    #2
    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!
    Daniel,

    Skype: [email protected]
    ICQ: 354-220-339
    Email: daniel@adultforce[dot]com


    Comment

    • brassmonkey
      Pay It Forward
      • Sep 2005
      • 77390

      #3
      damn thats helpful
      TRUMP 2026 KEKAW!!! - The Laken Riley Act Is Law!
      DACA ENDED - SUPPORT AZ HCR 2060 52R - email: brassballz-at-techie.com

      Comment

      • AdultSoftwareSolutions
        Confirmed User
        • Mar 2009
        • 193

        #4
        well written Daniel
        Adult Software Solutions (ICQ 559884738)
        PHP, MySQL, Flash, Actionscript, Java, Wowza, CMS, Tube, VOD, CRM, Dating, Social Networks, Paysites, TGPs, Directories and more.
        If you can think it I can build it.

        Comment

        • daniel_webcams
          Confirmed User
          • Nov 2008
          • 2491

          #5
          Thanks guys...
          Daniel,

          Skype: [email protected]
          ICQ: 354-220-339
          Email: daniel@adultforce[dot]com


          Comment

          • John Marco
            Confirmed User
            • May 2005
            • 912

            #6
            Webcams.com affiliate reps are here to help
            WEBCAMS.COM
            $42+ PPS or revshare
            ICQ: 476-111 Google Talk: Webcams.com

            Comment

            • papagmp
              Confirmed User
              • Mar 2008
              • 618

              #7
              Nice tip daniel_webcams - basically what we did on our latest tour.
              Real Amateur Porn, Amateur Teens, Sister Porn......
              www.gmpcash.com

              Comment

              • Rio69
                Registered User
                • Oct 2005
                • 35

                #8
                great help, thanks a lot

                Comment

                Working...