#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    31
    Rep Power
    0

    Cannot get flowplayer Multiple players.


    Hi

    I have flowplayer setup on my computer.
    It plays files on Localhost and I have all the files on the localhost folders.

    When I try to get multiple players on one page I only get 1 instance of the player and the other is ignored completely.
    This happens in all browsers.

    This is what I have, any ideas would be appreciated.

    There is also something going on with the <script> tag in the head, I cant work out why it is not closed?

    Code:
    <!DOCTYPE HTML>
    
    <html>
    
    <head>
    <title>video</title>
       <script src="flowplayer/flowplayer-3.2.11.min.js"></script>
    
    <body>
    
     <a href="http://localhost/vids/intro.flv"
       style="display:block;width:425px;height:300px;"
       id="player">
     </a>
    
    
     <a href="http://localhost/vids/tools.flv"
       style="display:block;width:425px;height:300px;"
       id="player">
     </a>
    
      <script language="JavaScript">
         flowplayer("player", "flowplayer/flowplayer-3.2.15.swf",
          {clip:{autoPlay:false}});
        </script>
    	
    	
    </body>
    </html>
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    31
    Rep Power
    0
    Update

    I can see why it is not working, because both instances have the same ID.

    So how do you get around this, since the player needs an ID and wont work without one.

    Dan
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    31
    Rep Power
    0
    Its ok all up and running.

    I just added new instances of the player.

    Not the way I would have liked to do it but it works fine.

    Dan

IMN logo majestic logo threadwatch logo seochat tools logo