Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 24 of 50 FirstFirst ... 14222324252634 ... LastLast
Results 346 to 360 of 742
  1. #346
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    WMP Visualizations

    Below is the code that i am using. My question is there anyway to pick what “Visualization” will be used by WMP?


    <object id="player" name="player" width="300" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media player components..." type="application/x-oleobject">
    <param name="url" value="Play.wmv">
    <param name="uiMode" value="full">
    <param name="autoStart" value="true">
    <param name="loop" value="true">
    <embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" showcontrols="true" uimode="full" width="240" height="320" src="" autostart="true" loop="true">
    </object>
    Thanks,
    CroCrew-

  2. #347
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    No its random, sorry.

  3. #348
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    No its random, sorry.
    Thanks Aero!

    By far this is the best place to get any answer on embedding WMP. Thanks everyone for helping everyone out.

    CroCrew-

  4. #349
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok i know you guys have probualy answered this question a hundred times but i really cant read 24 pages of answers i read about 7-8 pages and no answer but how do wmp to play lets say like 7-8 songs but the person can scroll thru them like the wmp has controls of play stop next song and previous song something like that and itll be for my myspace page

    thanks in advance

  5. #350
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I'm going to tell you the same thing I told some one else in this thread. If you don't have the time to read through the pages then I guess I really don't have the time to help you, because the answer is there.
    coughs*m3u playlist*coughs

  6. #351
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    I'm going to tell you the same thing I told some one else in this thread. If you don't have the time to read through the pages then I guess I really don't have the time to help you, because the answer is there.
    coughs*m3u playlist*coughs

    ahh thats mean can you give me a page range like for example pgs 14-20 or 3-5 something like that

  7. #352
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I don't even think you read those 7-8 pages its on page 3.

  8. #353
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    thank to all giving better java scripts i have one doubt all programers are askin and giving scripts in dropdown style only no one can consuntrating about checkbox style.

    can you plz any one provide checkbox audio embede script for me that my website visitors can choose some of all songs they most liked.

  9. #354
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Thats because no one asked until now. I think you want something different though. It sounds like you want a system that gets the songs that the user likes and then submits them to you, but having them check the songs isn't going to do much, you will probably need to have them check the boxes then have them submit it and a file created just for them (an m3u playlist) will be embedded into the next page they see. You can do a check box but it will only one song played per check box not all of the songs they play. There is only so much you can do with javascript.

  10. #355
    New to the CF scene
    Join Date
    Nov 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm guessing there's no javascript responses to Window's Media Player actions such as 'OnPlay'. The reason I want to know is because I need it to perform a function when a song ends.

  11. #356
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    IE only maybe, search for playState, I think there is some stuff about it on this thread.

  12. #357
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Jukebox comined with text links to open in embedded MP3

    Hya

    First off thanks to all contributors to this site, especially Aerospace Eng - your're definately making web page design and programming more accessible to all.

    I've read through ALL (!) the pages over the last few days but apologise if I've missed anything.

    I hope someone can help:
    I'm creating a website for new bands / music demos etc and have managed to embed a media player into the site. I want the player to randomly play a track on opening the page. After that I would like the page viewer to be able to play further tracks in the same embeded player using text links, rather than drop down selection.

    I have used the jukebox code in post 67 and tried to add the following from previous codes:

    <a href="yoursong.mp3" onclick="document.all.music.filename='yoursong.mp3';return false">Play Song</a>

    I can't get it to work and am going mad! I have played around with the 'Playit' scripts also but can't get it all to fit together!

    Any help would be much appreciated.
    Merry Xmas to all!


  13. #358
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    body {
    text-align:center;
    }
    </style>
    <script type="text/javascript">
    <!--
    function PlayIt(mp3){
    	nummp3 = 5
    	day = new Date()
    	z = day.getTime()
    	y = (z - (parseInt(z/1000,10) * 1000))/10
    	x = parseInt(y/100*nummp3,10) + 1
    	if (x == (1)){
    		mp3=("http://absoluteurltosong1.mp3")
    	}
    	if (x == (2)){
    		mp3=("http://absoluteurltosong2.mp3")
    	}
    	if (x == (3)){
    		mp3=("http://absoluteurltosong3.mp3")
    	}
    	if (x == (4)){
    		mp3=("http://absoluteurltosong4.mp3")
    	}
    	if (x == (5)){
    		mp3=("http://absoluteurltosong5.mp3")
    	}
    	document.getElementById('music').innerHTML='<object width="300" height="45" '
        	+'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
          	+'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
          	+'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
          	+'<param name="url" value="'+mp3+'">'
          	+'<param name="uiMode" value="full">'
          	+'<param name="autoStart" value="true">'
          	+'<param name="loop" value="true">'
          	+'<embed type="application/x-mplayer2" '
          	+'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
          	+'showcontrols="true" uimode="full" width="300" height="45" '
          	+'src="'+mp3+'" autostart="true" loop="true">'
    		+'<\/object>';
    }
    window.onload=PlayIt;
    //-->
    </script>
    </head>
    
    <body>
    <a href="http://absoluteurltosong1.mp3" onclick="PlayIt(this.href);return false">Song 1</a><br>
    <a href="http://absoluteurltosong2.mp3" onclick="PlayIt(this.href);return false">Song 2</a><br>
    <a href="http://absoluteurltosong3.mp3" onclick="PlayIt(this.href);return false">Song 3</a><br>
    <a href="http://absoluteurltosong4.mp3" onclick="PlayIt(this.href);return false">Song 4</a><br>
    <a href="http://absoluteurltosong5.mp3" onclick="PlayIt(this.href);return false">Song 5</a><br>
    <div id="music">
    <object width="300" height="45" 
          classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
          codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
          standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
          <param name="url" value="null.mp3">
          <param name="uiMode" value="full">
          <param name="autoStart" value="true">
          <param name="loop" value="true">
          <embed type="application/x-mplayer2" 
          pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
          showcontrols="true" uimode="full" width="300" height="45" 
          src="null.mp3" autostart="true" loop="true"></embed>
    	  Your browser does not support this plugin.
    </object>
    </div>
    </body>
    </html>

  14. #359
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Many thanks Aerospace Eng!


    Thanks for the code!

    Made a few changes though - noticed that the 'playit' command actually causes random songs to be played - so clicking on the text links caused a further random song to be played.

    I worked round this by copying the code under a command 'playit 2' and removing the random element (shown in green). This worked on a blank html page as required. However on adding to my page I also had to make some modifications as 2x wm players were popping up. I removed part of the code (in red) and it seems to work.

    Merry Christmas.
    Ps if you want any website links let me know - I think you deserve them after all the coding help you're giving everyone!

    Example of it working is http://www.worldsmostexpensivehomepa...korridors.html
    (I'm using that domain to host a diffent site as you will see)

    Code (not sure how to put in window sorry):

    <html>
    <head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    <style type="text/css">
    body {
    text-align:center;
    }
    </style>
    <script type="text/javascript">
    <!--
    function PlayIt(mp3){
    nummp3 = 5
    day = new Date()
    z = day.getTime()
    y = (z - (parseInt(z/1000,10) * 1000))/10
    x = parseInt(y/100*nummp3,10) + 1
    if (x == (1)){
    mp3=("music/StepIntoTh.mp3")
    }
    if (x == (2)){
    mp3=("music/deal.mp3")
    }
    if (x == (3)){
    mp3=("music/YoullFindU.mp3")
    }
    if (x == (4)){
    mp3=("music/bethere.mp3")
    }
    if (x == (5)){
    mp3=("music/wasted.mp3")
    }
    document.getElementById('music').innerHTML='<object width="300" height="45" '
    +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
    +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
    +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
    +'<param name="url" value="'+mp3+'">'
    +'<param name="uiMode" value="full">'
    +'<param name="autoStart" value="true">'
    +'<param name="loop" value="true">'
    +'<embed type="application/x-mplayer2" '
    +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
    +'showcontrols="true" showstatusbar="true" uimode="full" width="300" height="69" '
    +'src="'+mp3+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    window.onload=PlayIt;
    //-->
    </script>
    <script type="text/javascript">
    <!--
    function PlayIt2(mp3){

    document.getElementById('music').innerHTML='<object width="300" height="45" '
    +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
    +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
    +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
    +'<param name="url" value="'+mp3+'">'
    +'<param name="uiMode" value="full">'
    +'<param name="autoStart" value="true">'
    +'<param name="loop" value="true">'
    +'<embed type="application/x-mplayer2" '
    +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
    +'showcontrols="true" showstatusbar="true" uimode="full" width="300" height="69" '
    +'src="'+mp3+'" autostart="true" loop="true">'
    +'<\/object>';
    }

    //-->
    </script>
    </head>
    <body>
    <a href="music/StepIntoTh.mp3" onclick="PlayIt2(this.href);return false">Step
    Into The Light</a><br>
    <a href="music/deal.mp3" onclick="PlayIt2(this.href);return false">Deal</a><br>
    <a href="music/wasted.mp3" onclick="PlayIt2(this.href);return false">Wasted</a><br>
    <a href="music/YoullFindU.mp3" onclick="PlayIt2(this.href);return false">You'll
    Find Us There</a><br>
    <a href="music/bethere.mp3" onclick="PlayIt2(this.href);return false">Be
    There (Beware)</a><br>
    <div id="music">
    <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
    standby="Loading Microsoft Windows Media Player components..."
    type="application/x-oleobject" height="45" width="300"> <param
    name="url" value="null.mp3"> <param name="uiMode" value="full"> <param
    name="autoStart" value="true"> <param name="loop" value="true">


    (Getting rid of above code seemed to work in finished web page!)

    <embed type="application/x-mplayer2"
    pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
    showcontrols="true" uimode="full" src="null.mp3" autostart="true"
    loop="true" height="69" width="300"> Your browser does not support
    this plugin.
    </object></div>
    <br>
    <br>
    <br>
    </body>
    </html>

  15. #360
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a very simple webpage hosted offsite where I use the embed command to automatically stream mp3s from a playlist.m3u file. There are approximately 350 mp3s in the playlist. It's working fine.

    This is practically the entirety of the html body:
    <embed src="playlist.m3u"
    kioskmode="true"
    autostart="true"
    type="audio/mpeg">


    Question: What can I use to automatically randomize the playlist.m3u file without any user prompting every time someone visits my page?

    Posts #357, 358 & 359 touch on the randomization, but I'd rather randomize the playlist.m3u than going through and coding for each of the 350 mp3s I have on the server.

    Many thanks for any help.
    Last edited by dietrologia; 12-22-2005 at 07:53 PM.


 
Page 24 of 50 FirstFirst ... 14222324252634 ... LastLast

Posting Permissions

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