Results 1 to 4 of 4

Thread: music player from urls

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default music player from urls

    hi,
    I don't really know what topic would be this, but i think it is javaScript.
    Ok, I have player, but it wont work with music from other webpages by urls.

    Maybe someone could suggest some script for me?? Thanks

  2. #2
    Join Date
    Dec 2009
    Location
    Richmond, Virginia
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    We need a lot of more information for example: what have you got so far? What are these different urls are you talking about? The more info you give, the better we are able to help you out

  3. #3
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,879
    Thanks
    49
    Thanked 265 Times in 257 Posts
    Blog Entries
    56

    Default

    It's not clear what you want exactly. Here's something that may be useful:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    
    <title>Simple Player</title>
    
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">google.load("swfobject", "2.1")</script>
    
    <script type="text/javascript">
    function get_video(){
    var flashvars = {};var params = {};
    params.wmode = "transparent";
    params.allowNetworking = "internal";
    params.flashvars = "autoplay=true";
    params.allowFullScreen = "true";
    swfobject.embedSWF(swfURL, "player", "60%", "83%", "8", false, flashvars, params);
    }
    window.onload=get_video;swfURL='http://www.youtube.com/v/28GPy7yRl88&amp;autoplay=1';
    </script>
    
    <style type="text/css">
    #player { position:absolute;left:20%;top:10%}
    </style>
    
    </head>
    
    <body>
    
    <div id="player" ></div>
    
    <a href="javascript:void(0)" onclick="swfURL='http://swf.tubechop.com/tubechop.swf?vurl=3H8V4Fzrcr0&amp;start=70&amp;end=550';get_video()">TubeChop</a><br>
    <a href="javascript:void(0)" onclick="swfURL='http://www.youtube.com/v/28GPy7yRl88&amp;autoplay=1&amp;fs=1';get_video();">YouTube</a><br>
    <a href="javascript:void(0)" onclick="swfURL='http://www.dailymotion.com/swf/xn7ce_carl-orff-carmina-burana-ozawa_music&amp;autoplay=1';get_video();">DailyMotion</a><br>
    <a href="javascript:void(0)" onclick="swfURL='http://video.google.nl/googleplayer.swf?docid=3132980300931574703&amp;fs=true';get_video();">GoogleVideo</a><br>
    <a href="javascript:void(0)" onclick="swfURL='http://video.libero.it/static/swf/eltvplayer.swf?id=f30606d37dd60fdc4f6e09643a4a6fa0.flv&amp;fs=true';get_video();">VideoLibero</a><br>
    
    </body>
    
    </html>
    ===
    Arie Molendijk.
    Last edited by molendijk; 12-27-2009 at 01:13 AM. Reason: Correction

  4. #4
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    thanks for last post I will use it for video and music also

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •