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.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    May 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Embedded Windows Media Player

    I need help in embedding windows media player in php. I mean I have it but it doesnt play any song which has & in it. I'd like to put up my site url to let you see the problem but ill get ban.

    anways...

    This is not an advertisement...
    okay.. This is what I am trying to say.
    This is the link.. http://s128004892.onlinehome.us/myspace-aqeel/
    There are two song one with "&" in it and second without it.

    1.3 Doors Down - Kryptonite & blah (This one does not work and show only half of the url - stop at 3%20Doors%20Down%20-%20Kryptonite.)
    2.other tracks (This one works and they are without "&" in it.)

    you guys have any idea why does it show only half url??

  • #2
    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
    In php & is considered the beginning of a new variable in the url. Try something like
    Code:
    3%20Doors%20Down%20-%20Kryptonite%20&%20blah
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    May 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_
    In php & is considered the beginning of a new variable in the url. Try something like
    Code:
    3%20Doors%20Down%20-%20Kryptonite%20&%20blah
    I can not do that..

    okay.. can you please go to the link below.. this will explain it

    - Click on the image (which says AudioStreamer).. The media player does work on some songs... - Example below...

    http://s128004892.onlinehome.us/pn/

    Daydreamer (Swahili Rap Version) - works
    System Of A Down & Blah- Hypnotize - does not work...

    ---

    Coding for PHP Windows media player..
    Code:
    <?PHP
    
    echo "<p align=\"center\" width=\"\">";
    
    
    # start of player#
    ##
    echo "<object classid=\"clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6\" id=\"WindowsMediaPlayer1\" align=\"middle\">
      <param name=\"URL\" value=\"http://s128004892.onlinehome.us/pn$x\">
      <param name=\"rate\" value=\"1\">
      <param name=\"balance\" value=\"0\">
      <param name=\"currentPosition\" value=\"0\">
      <param name=\"defaultFrame\" value>
      <param name=\"playCount\" value=\"1\">
      <param name=\"autoStart\" value=\"-1\">
      <param name=\"currentMarker\" value=\"0\">
      <param name=\"invokeURLs\" value=\"-1\">
      <param name=\"baseURL\" value>
      <param name=\"volume\" value=\"100\">
      <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\">
    <embed TYPE=\"video/x-ms-asf-plugin\" PLUGINSPAGE=\"http://www.microsoft.com/Windows/
    Downloads/Contents/Products/MediaPlayer/\" SRC=\"http://s128004892.onlinehome.us/pn$x&\" 
    NAME=\"MediaPlayer\" WIDTH=\"340\" HEIGHT=\"69\">
    </object>
    <br><b><font color=\"#800080\" face=\"Arial\" size=\"3\"><a href=\"http://s128004892.onlinehome.us/pn$x\">Click Here To Download This File!</a></font></b></p>
    ";
    
    ?>
    Coding for poping widows media player--
    Code:
        echo "<a href='#' onclick=\"window.open('play.php?x=$x', 'popupv', 'width=477,height=300,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');return false\" target=\"_blank\"><img src=\"stream.gif\"><font size=\"-1\">Stream!<a href=" . andrLink("?q=m&m=",$x) . ">";

  • #4
    Regular Coder goughy000's Avatar
    Join Date
    Nov 2005
    Location
    England
    Posts
    415
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can not do that..
    why not?
    PHP Freelancing!
    ByteForums!
    Scriptlance.comNeed a job done quick? post it on scriptlance! OR! your a programmer? sign up and get paid for these jobs!

  • #5
    New Coder
    Join Date
    May 2006
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i got it.. thank you for you help... i integrated both of my adromeda and windows media player..

    now you may check.. it finally works...


  •  

    Posting Permissions

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