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 15 of 50 FirstFirst ... 5131415161725 ... LastLast
Results 211 to 225 of 742
  1. #211
    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 think you should learn the basics of html. You might be taking on more than you can handle at the moment. The code you posted looks NOTHING like the code I gave you.
    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>Listen To A Demo</TITLE>
    <script type="text/javascript">
    <!--
    function PlayIt(what){
    document.getElementById('music').innerHTML='<object width="300" height="44" '
          +'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="'+what+'">'
          +'<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="'+what+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    //-->
    </script>
    <style type="text/css">
    body {
    color:#000000;
    background:url(17musBar.gif) fixed;
    margin:0;
    padding:0;
    text-align:center;
    }
    a, a:link {
    color:#FFD700;
    }
    a img {
    border:0;
    }
    .orange {
    color:#FFA500;
    }
    .centered {
    text-align:center;
    }
    </style>
    </head>
    <body>
    <p></p>
    <p></p>
    <h1 class="orange centered">Welcome To<br>Karaoke On The Road</h1>
    <h2 class="orange centered">KJ:Robbie Southgate</h2>
    <p class="centered"><img alt="" src="http://tekcities.com/ss_karaoke/1005177899.jpg"></p>
    <p> </p>
    <p> </p>
    <p> <a href="http://www.tekcities.com/ss_karaoke/index.html"><img alt="" src="http://tekcities.com/ss_karaoke/button823090.jpg"></a></p>
    <p> <a href="song1.mp3" onclick="PlayIt(this.href);return false"><img alt="" src="http://www.tekcities.com/ss_karaoke/button270819.jpg"></a></p>
    <p> <a href="song2.mp3" onclick="PlayIt(this.href);return false"><img alt="" src="http://tekcities.com/ss_karaoke/button642326.jpg"></a></p>
    <p> <a href="song3.mp3" onclick="PlayIt(this.href);return false"><img alt="" src="http://tekcities.com/ss_karaoke/button447073.jpg"></a></p>
    <p> <a href="song4.mp3" onclick="PlayIt(this.href);return false"><img alt="" src="http://tekcities.com/ss_karaoke/button213280.jpg"></a></p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <p> </p>
    <span id="music">
    <object width="300" height="44" 
          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="">
          <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="44" 
          src="what" autostart="true" loop="true"></embed>
    </object>
    </span>
    </body>
    </html>
    To learn more about html go to www.w3schools.com and www.htmldog.com
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  2. #212
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to make it play inside the embedded player?

    Hi guys have been trying to create a embedded WMP on my website to :
    1)Play an intro movie automatically once the page is loaded
    2)Allow the visiter to choose a particular movie by clicking a text link or image to load inside the embedded WMP.

    The 1st goal is achevied and the movie loads perfectly. But when i click the text links to choose another movie, it opens my WMP on my computer rather then load in the embedded WMP.I scavenged the net but only can find examples on the old classid and not the latest one(6BF52A52-394A-11d3-B153-00C04F79FAA6). When I change the classid on a working code to this new one it stops working.Can someone help me pls.

    This is a sample code I came out by cutting and pasting from various parts off the net. I know it goes something like this but lacks something to work properly. 1st 3 links are text links and the 4th one is an image link. Can someone tell me what it is missing and how to make it work?

    <OBJECT id=Player classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width="400" height="300">
    <PARAM NAME="URL" VALUE="http://www.host.com/files/intro.wmv">
    <PARAM NAME="uiMode" value="none">
    <PARAM NAME="autoStart" VALUE="true">
    <PARAM NAME="stretchtofit" value="true">
    <PARAM NAME="enabled" value="true">
    <PARAM NAME="windowlessVideo" VALUE="false">
    </OBJECT>


    <a href="http://www.host.com/files/video1.wmv" onclick="Player.PlayIt(this.href);return false">Video 1</a>
    <a href="http://www.host.com/files/video2.wmv" onclick="Player.PlayIt(this.href);return false">Video 2</a>
    <a href="http://www.host.com/files/video3.wmv" onclick="Player.PlayIt(this.href);return false">Video 3</a>
    <a href="http://www.host.com/files/video4.wmv" onclick="Player.PlayIt(this.href);return false"><img alt="" src="http://www.host.com/images/button.jpg"></a>


    Can some one tell me what these lines mean? These lines were not given in the sample codes in the microsoft SDK and I tried without them and it still works.Atleast for the 1st part that is.Are they used for the older classid and not needed for the new one any more? Thanks alot in advance.

    'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"

    'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '

    standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
    Last edited by silverferro; 09-17-2005 at 12:23 PM.

  3. #213
    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
    Are you only trying to cater for Internet Explorer? And have you actually read this whole thread? Carefully? The answer you are looking for has been provided, quite recently actually, the brentk threads talk a lot about what you are trying to do.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  4. #214
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry

    yeah i did go through the whole thing for 2 days.the thing is i'm new to WMP codes.I actully started out with Flash videos but the clips were not playing smoothly so i tried wmv and the encoded file was smaller and the quality is MUCH better wile streaming. Thats y i want to use WMP. But when ever I try to change anything in the posted codes to my requirements, it just won't work. So i just cut the portions which I can understand and try to work from there. The previous codes are based on either older classid or use buttons or drop down menus not image or text linka to start a new movie. Thats the part i'm trying to change but everyhting goes wrong. Well it will be nice if very browser can view it if not I shall just take IE as most people use that.

  5. #215
    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//EN" "http://www.w3.org/TR/html4/strict.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(what){
    document.getElementById('music').innerHTML='<object width="300" height="44" '
          +'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="'+what+'">'
          +'<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="'+what+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    //-->
    </script>
    </head>
    
    <body>
    <a href="http://www.host.com/files/video1.wmv" onclick="PlayIt(this.href);return false">Video 1</a><br>
    <a href="http://www.host.com/files/video2.wmv" onclick="PlayIt(this.href);return false">Video 2</a><br>
    <a href="http://www.host.com/files/video3.wmv" onclick="PlayIt(this.href);return false">Video 3</a><br>
    <a href="http://www.host.com/files/video4.wmv" onclick="PlayIt(this.href);return false">Video 4</a><br><br>
    <span id="music">
    <object id="player" name="player" width="320" height="240" 
          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="">
          <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="320" height="240" 
          src="" autostart="true" loop="true">
    </object>
    </span>
    </body>
    </html>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  6. #216
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Thank you so much

    I think now I know what I have been doing wrong. All this while I have been throwing this part in quote away and only taking the next part. I was thinking why are there two codes with same params repeated and always didn't put this part. But this time i just copied everything and it worked. Sorry for the stupid mistake and wasting your time.It works great in IE but only shows the contorl and not the movie in FireFox.Its ok i think i can tweak it from your previous codes.Thanks alot.


    Quote Originally Posted by _Aerospace_Eng_
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.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(what){
    document.getElementById('music').innerHTML='<object width="300" height="44" '
          +'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="'+what+'">'
          +'<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="'+what+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    //-->
    </script>
    </head>
    
    <body>
    <a href="http://www.host.com/files/video1.wmv" onclick="PlayIt(this.href);return false">Video 1</a><br>
    <a href="http://www.host.com/files/video2.wmv" onclick="PlayIt(this.href);return false">Video 2</a><br>
    <a href="http://www.host.com/files/video3.wmv" onclick="PlayIt(this.href);return false">Video 3</a><br>
    <a href="http://www.host.com/files/video4.wmv" onclick="PlayIt(this.href);return false">Video 4</a><br><br>
    <span id="music">
    <object id="player" name="player" width="320" height="240" 
          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="">
          <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="320" height="240" 
          src="" autostart="true" loop="true">
    </object>
    </span>
    </body>
    </html>

  7. #217
    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
    change this
    Code:
    <script type="text/javascript">
    <!--
    function PlayIt(what){
    document.getElementById('music').innerHTML='<object width="300" height="44" '
          +'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="'+what+'">'
          +'<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="'+what+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    //-->
    </script>
    to this
    Code:
    <script type="text/javascript">
    <!--
    function PlayIt(what){
    document.getElementById('music').innerHTML='<object width="320" height="240" '
          +'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="'+what+'">'
          +'<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="320" height="240" '
          +'src="'+what+'" autostart="true" loop="true">'
    +'<\/object>';
    }
    //-->
    </script>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  8. #218
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm using the following code to embed a windows media player on my page:

    <object id="mediaPlayer" width="270" height="45"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    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" player.currentMedia.name>
    <param name="fileName" value="http://yourday.clemson.edu/gattisproject/audio/gattisplayer1.m3u">
    <param name="animationatStart" value="true">
    <param name="transparentatStart" value="true">
    <param name="autoStart" value="true">
    <param name="showControls" value="true">
    <param name="loop" value="true">
    <embed type="application/x-mplayer2"
    pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
    bgcolor="darkblue" showcontrols="true" width="270" height="45"
    src="http://yourday.clemson.edu/gattisproject/audio/gattisplayer1.m3u" autostart="true" designtimesp="5311" loop="true">
    </object>

    It's working great, but I'd like to display the title of the track that is currently playing. This was covered before in this post but that applied to an earlier version of the code. Can anyone give me any suggestions as to how to get the title of the currently playing track to display? Thanks.

  9. #219
    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
    This can't be done in javascript alone. Javascript can read a file but it needs activex to write text from the file. What you are probably going to need to do is put the player in an iframe and use php to read the lines of the file using a php array. Onchange submit to the php file and write out the code with the appropiate title. I don't have the time currently to show you how to do this but I've told you what you need to do and hopefully pointed you in the right direction.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  10. #220
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Try this code

    Thanks for the help _Aerospace_Eng_......thanks alot.

    mrodger.....I think the code below can be used to do what you want. I took it from MSDN while trying to fix my codes which Aerospace_Eng helped me fix.
    basicly u add this script on the same page as your embedded WMP and then create a DIV ELEMENT. And under ID, name the DIV ELEMENT "MediaName" without the "". Maybe you can try this.See if it works.


    Example Code

    The following JScript example uses an HTML DIV element, named MediaName,
    to display the name of the current media item. The code updates the text
    in the DIV with each occurrence of the mediaChange event.
    The Player object was created with ID = "Player".

    <!-- Create an event handler for media change. -->
    <SCRIPT FOR = "Player" EVENT = "mediaChange(Item)">
    // Test whether a valid currentMedia object exists.
    if (Player.currentMedia){
    // Display the name of the current media item.
    MediaName.innerHTML = Player.currentMedia.name;
    }
    </SCRIPT>
    -------------------------------------------------------------------------

  11. #221
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Aerospace,

    I have my web pages finished thanks to your help!!

    I have one last desire...

    The code you posted in #201 here doesnt play a mp3 file. Is there something else I need to know?

    your code : (I just put an MP3 file in the same folder and changed the link to that mp3 (aimee.mp3)

    Thanks!

    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 StartMeUp(){
    player.url = "tc4014-v.wmv";
    }
    function screenfull(){
    /* Check to be sure the player is playing. */
    if (player.playState == 3) 
    	player.fullScreen = 'true';
    }
    function ShutMeDown(){
    player.controls.stop();
    }
    function PlayIt(what,img){
    document.player.url=what;
    document.getElementById('pix').innerHTML='<img src="'+img+'" width="100" height="100" alt="">';
    }
    //-->
    </script>
    </head>
    
    <body>
    <a href="aimee.mp3" onclick="PlayIt(this.href,'image1.jpg');return false">Jon Courson - Song</a><br>
    <a href="aimee.mp3" onclick="PlayIt(this.href,'image2.jpg');return false">Jon Courson - Video</a><br>
    <span id="music">
    <object id="player" name="player" width="240" height="320" 
          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="">
          <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><br>
    </span>
    <span id="pix"></span>
    <input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
    <input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
    <input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
    </body>
    </html>

  12. #222
    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
    Read post 207. It doesn't like when you mix them.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  13. #223
    New Coder
    Join Date
    Sep 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry, I put the wrong code in last time in previous post. I really didnt mix them. See below. They are all MP3's. The PLAY button on bottom works, but the links dont play. When you click a link it will change the image and display READY in the WMP window. Also if you had played the song by clicking the PLAY button (<input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">) it stops the playing. Any ideas?

    Here's the code:

    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 StartMeUp(){
    player.url = "aimee.mp3";
    }
    function screenfull(){
    /* Check to be sure the player is playing. */
    if (player.playState == 3) 
    	player.fullScreen = 'true';
    }
    function ShutMeDown(){
    player.controls.stop();
    }
    function PlayIt(what,img){
    document.player.url=what;
    document.getElementById('pix').innerHTML='<img src="'+img+'" width="100" height="100" alt="">';
    }
    //-->
    </script>
    </head>
    
    <body>
    <a href="AIMEE.MP3" onclick="PlayIt(this.href,'image1.jpg');return false">Aimee mann mp3</a><br>
    <a href="aimee.mp3" onclick="PlayIt(this.href,'image2.jpg');return false">Aimee mann mp3</a><br>
    <span id="music">
    <object id="player" name="player" width="240" height="320" 
          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="">
          <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><br>
    </span>
    <span id="pix"></span>
    <input type="button" name="BtnPlay" value="PLAY" onclick="StartMeUp()">
    <input type="button" name="BtnStop" value="STOP" onclick="ShutMeDown()">
    <input type="button" name="Btnfull" value="FULL" onclick="screenfull()">
    </body>
    </html>

  14. #224
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Mr. Aerospace... First let me say you are a walking HTML dictionary.

    Here's my problem:
    I created a Voice Blog on the Blogger site with the help of a friend of mine.
    Before I finally got it all done and correct I was searching the Net for help and came upon this particular thread.... My friend called me back during the time was looking for help and we finally resolved the issue.

    But, as I was looking for help on here... I saw a cool explaination you gave to someone about how to code a "drop down" window for vistors to choose songs from. I thought that was amazing.

    The example you gave was for a class id for Windows Media Player 6 ( 22D6F312-B0F6-11D0-94AB-0080C74C7E95) ...which I did not know about at the time ( I am a novice at this ).

    Anyway... I used your HTML code for the drop down window as folllows:

    <div align=center>
    <SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music>
    <OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>
    <OPTION value=http://urltoyoursong.mp3>Artist - Song Title</OPTION>

    </SELECT><BR>
    <OBJECT id=music height=44 width=230 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95>
    <PARAM NAME="AutoStart" VALUE="-1">
    <PARAM NAME="Balance" VALUE="0">
    <PARAM NAME="DisplaySize" VALUE="0">
    <PARAM NAME="Filename" VALUE="">
    <PARAM NAME="Mute" VALUE="0">
    <PARAM NAME="SelectionStart" VALUE="-1">
    <PARAM NAME="SelectionEnd" VALUE="-1">
    <PARAM NAME="ShowControls" VALUE="-1">
    <PARAM NAME="ShowAudioControls" VALUE="-1">
    <PARAM NAME="ShowDisplay" VALUE="0">
    <PARAM NAME="ShowPositionControls" VALUE="-1">
    <PARAM NAME="Volume" VALUE="0">
    <PARAM NAME="AudioStream" VALUE="-1">
    <PARAM NAME="AutoSize" VALUE="0">
    <PARAM NAME="AnimationAtStart" VALUE="-1">
    <PARAM NAME="AllowScan" VALUE="-1">
    <PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
    <PARAM NAME="AutoRewind" VALUE="1">
    <PARAM NAME="BaseURL" VALUE="">
    <PARAM NAME="BufferingTime" VALUE="5">
    <PARAM NAME="CaptioningID" VALUE="">
    <PARAM NAME="ClickToPlay" VALUE="-1">
    <PARAM NAME="CursorType" VALUE="0">
    <PARAM NAME="CurrentPosition" VALUE="-1">
    <PARAM NAME="CurrentMarker" VALUE="0">
    <PARAM NAME="DefaultFrame" VALUE="">
    <PARAM NAME="DisplayBackColor" VALUE="0">
    <PARAM NAME="DisplayForeColor" VALUE="16777215">
    <PARAM NAME="DisplayMode" VALUE="0">
    <PARAM NAME="Enabled" VALUE="-1">
    <PARAM NAME="EnableContextMenu" VALUE="-1">
    <PARAM NAME="EnablePositionControls" VALUE="-1">
    <PARAM NAME="EnableFullScreenControls" VALUE="0">
    <PARAM NAME="EnableTracker" VALUE="-1">
    <PARAM NAME="InvokeURLs" VALUE="-1">
    <PARAM NAME="Language" VALUE="-1">
    <PARAM NAME="PlayCount" VALUE="1">
    <PARAM NAME="PreviewMode" VALUE="0">
    <PARAM NAME="Rate" VALUE="1">
    <PARAM NAME="SAMILang" VALUE="">
    <PARAM NAME="SAMIStyle" VALUE="">
    <PARAM NAME="SAMIFileName" VALUE="">
    <PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
    <PARAM NAME="SendWarningEvents" VALUE="-1">
    <PARAM NAME="SendErrorEvents" VALUE="-1">
    <PARAM NAME="SendKeyboardEvents" VALUE="0">
    <PARAM NAME="SendMouseClickEvents" VALUE="0">
    <PARAM NAME="SendMouseMoveEvents" VALUE="0">
    <PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
    <PARAM NAME="ShowCaptioning" VALUE="0">
    <PARAM NAME="ShowGotoBar" VALUE=0">
    <PARAM NAME="ShowStatusBar" VALUE="0">
    <PARAM NAME="ShowTracker" VALUE="-1">
    <PARAM NAME="TransparentAtStart" VALUE="-1">
    <PARAM NAME="VideoBorderWidth" VALUE="0">
    <PARAM NAME="VideoBorderColor" VALUE="0">
    <PARAM NAME="VideoBorder3D" VALUE="0">
    <PARAM NAME="WindowlessVideo" VALUE="0">
    </OBJECT>
    </div>
    .
    .
    .
    .
    ....I changed the class id the my Windows Media Player10 class id ( 6BF52A52-394A-11d3-B153-00C04F79FAA6"> ) and the result was this:

    1- When I selected the song I wanted to hear, nothing played. So I changed it back to the Class Id you gave and it worked but my Visualization ( the cool little shapes and forms that move to the beat of the music) , did not appear in the black window on the player. Just a blank black window

    I saw the other examples you gave using my class id and tried those and every combination of the codes.

    I cant get both things to work at the same time.
    The following is how I currently have it coded ( with the wrong Class Id ) and it is working, but without the Vizualizations. I'd really like to see the Visualizations in the player and i think it has to due with the Class Id thing.
    NOTE: I currently dont have it coded like your examples, but as i said, its working with the wrong Class ID.
    Here is how it currently coded:

    <div align=center>
    <SELECT id=cancion onchange=document.all.player.filename=document.all.cancion.value; size=1 name=Player>
    <OPTION selected>::::::::::::: Choose Your Song Here :::::::::::::</OPTION>
    <OPTION value=http://70.68.1.185:8000>Vibes to the Max</OPTION>
    <OPTION value=http://213.251.136.193:8200>Soulful Smooth Jazz</OPTION>
    <OPTION value=http://64.236.34.196:80/stream/1018>Goove Salad</OPTION>
    <OPTION value=http://69.28.132.228:8400>CIM Smooth Fusion</OPTION>
    </SELECT><BR>

    <OBJECT id="player" height="183" width="216"classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95

    <param name="rate" value="1">
    <param name="balance" value="1">
    <param name="filename" value="">
    <param name="currentPosition" value="0">
    <param name="defaultFrame" value="">
    <param name="playCount" value="2">
    <param name="autoStart" value="1">
    <param name="currentMarker" value="0">
    <param name="invokeURLs" value="-1">
    <param name="volume" value="40">
    <param name="mute" value="0">
    <param name="uiMode" value="full">
    <param name="stretchToFit" value="0">
    <param name="windowlessVideo" value="0">
    <param name="enabled" value="-1">
    <param name="enableContextMenu" value="-1">
    <PARAM NAME="AnimationAtStart" VALUE="1">
    <param name="fullScreen" value="0">
    <PARAM NAME="ShowStatusBar" VALUE="1">
    <param name="SAMIStyle" value="">
    <param name="SAMILang" value="">
    <param name="SAMIFilename" value="">
    <param name="captioningID" value="">
    <param name="enableErrorDialogs" value="0">
    <param name="_cx" value="8599">
    <param name="_cy" value="7276">
    </OBJECT>
    </div>

    Bottom line is this... Can you help me with making this work, using my correct class id and having the Visualizations too...

    Thanks... I know this was a bit long winded.... but i wanted to make myself clear...

    Thanks again !

  15. #225
    New to the CF scene
    Join Date
    Sep 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    By the way Aerospace... Here is my Blog site where you can see the visualization working with the simple code without the drop down window implemented and the code for it.... http://crazylegsdancin.blogspot.com/

    <object id="Player" height="183" width="216" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <param name="URL" value="http://69.28.132.228:8400">
    <param name="rate" value="1">
    <param name="balance" value="1">
    <param name="currentPosition" value="0">
    <param name="defaultFrame" value="">
    <param name="playCount" value="2">
    <param name="autoStart" value="1">
    <param name="currentMarker" value="0">
    <param name="invokeURLs" value="-1">
    <param name="baseURL" value="">
    <param name="volume" value="40">
    <param name="mute" value="0">
    <param name="uiMode" value="full">
    <param name="stretchToFit" value="0">
    <param name="windowlessVideo" value="0">
    <param name="enabled" value="-1">
    <param name="enableContextMenu" value="-1">
    <param name="fullScreen" value="0">
    <param name="SAMIStyle" value="">
    <param name="SAMILang" value="">
    <param name="SAMIFilename" value="">
    <param name="captioningID" value="">
    <param name="enableErrorDialogs" value="0">
    <param name="_cx" value="8599">
    <param name="_cy" value="7276">
    </object>

    .. this works just as it should... but when i try to implement the "drop down window" it doesnt work....
    Its gotta be something simple... I just dont get it... Thanks again


 
Page 15 of 50 FirstFirst ... 5131415161725 ... 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
  •