Results 1 to 5 of 5
  1. #1
    New Member
    Join Date
    Dec 2011
    Location
    Oconomowoc, WI, USA
    Posts
    3

    Problems with Audio Playlist on Wordpress Blog in Widget

    Hello Folks,

    I have a playlist and windows media player embedded in a widget on a Wordpress blog. When I view the site in Firefox browser, the player and music are not there but when I view in Internet Explorer, the player appears and the music plays. Anyone who can help solve this problem is a hero!

    Site is: http://www.music.articleposts.com

    I assume it is not the code since everything is OK in Internet Explorer.

    Here is the code:

    <!-- begin embedded Playlist file... -->

    <src="MyClassyPlaylist.m3u"
    width="320"
    height="100"
    loop="false"
    hidden="false"
    autostart="true">

    <!-- end embedded Playlist file... -->


    <!-- begin embedded WindowsMedia file... -->
    <table border='0' cellpadding='0' align="left">
    <tr><td>
    <OBJECT id='mediaPlayer' width="320" height="100"
    classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
    embed type="application/x-oleobject" name="MediaPlayer">
    <param name='fileName' value="http://www.music.articleposts.com/audio/MyClassyPlaylist.m3u">
    <standby="Loading Microsoft Windows Media Player components...'
    ID="MediaPlayer" style="position:absolute; left:0;top:0;">

    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value="false">

    <param name='autoStart' value="true">
    <param name='showControls' value="true">
    <param name='loop' value="false">
    <EMBED type='application/x-mplayer2'
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="mediaplayer1"
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
    bgcolor='darkblue' showcontrols="true" showtracker='-1'
    showdisplay='1' showstatusbar='-1' videoborder3d='-1' width="320" height="100"
    src="http://http://music.articleposts.com/audio/MyClassyPlaylist.m3u" autostart="true" designtimesp='5311' loop="false">
    </left>
    </EMBED>
    </OBJECT>
    </td></tr>
    <!-- ...end embedded WindowsMedia file -->

    <!-- begin link to launch external media player... -->
    <tr><align='left'>
    <a href="http://http://music.articleposts.com/audio/MyClassyPlaylist.m3u" style='font-size: 85%;' target='_blank'></a>
    <!-- ...end link to launch external media player... -->
    <font color="ff3333"><FONT SIZE=2 STYLE="font-size: 8pt">Click square to stop the music
    </font>

    </tr>
    </table>

    <!-- ...end link to launch external media player... -->

    <!-- End Sound Codes-->


    Thanks for your help.

  2. #2
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    I don't know a whole lot about m3u files but I do know that they are likely to be an ongoing source of grief as they are not well supported by different browsers. There's a good chance that the problem involves making sure the end user's browser is correctly configured to play the file and that's something you can't control.

    My question is this: How important is it for you to have a playlist rather than a single file that plays all the tracks one after the other? If you're able to edit your audio files you could construct one long file and do away with the playlist altogether. There are obviously disadvantages with this approach but it would mean much better browser compatibility.

    And that brings me to the next point which is that the future of audio in browsers is probably HTML5 rather than proprietary players like Windows Media Player. There are many browsers/devices that won't play your file at all as long as you're using Windows Media. I know this isn't really what you want to hear but I'd seriously consider using HTML5 audio instead. That should work on all modern browsers including mobile devices.

    HTML5 doesn't directly support playlists but there are ways to make a playlist using JavaScript. That's a bit more involved though.
    Dave Owen
    MediaCollege.com

  3. #3
    New Member
    Join Date
    Dec 2011
    Location
    Oconomowoc, WI, USA
    Posts
    3
    Thank you Dave. The music now plays but there are two instances of players both on IE and Firefox. I don't know what is causing this. Here is the URL for the site:
    http://music.articleposts.com. I have tried removing some of the code, but that hasn't helped. I also tried disabling add-ons and turned off a plugin, "Audio", for Wordpress sites. I have looked at the page source which hasn't helped either. I am at my wits end to figure this out.
    I do not wish to load any other player. Chances are my code would not then work.

  4. #4
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Location
    Te Awamutu, New Zealand
    Posts
    3,959
    Blog Entries
    79
    You have two instances of the <embed> code - one by itself and then another one inside the <object> code. You also have an extra </EMBED> tag.

    Remove this whole block because it's duplicated in the object code:
    Code:
    <embed name="playlist"
    src="http://www.music.articleposts.com/audio/MyClassyPlaylist.m3u"
    width="320"
    height="100"
    loop="false"
    hidden="false"
    autostart="true">
    <data="http://www.music.articleposts.com/audio/MyClassyPlaylist.m3u">
    </embed>
    That should sort it out.
    Dave Owen
    MediaCollege.com

  5. #5
    If your content is hard-coded and is not programmatically and dynamically produced, I would suggest you to convert it to various formats to solve cross browser problems so that they don't rely on external plugin. Please see the details from w3 school. http://www.w3schools.com/html/html5_audio.asp

    If you have a strong web developer to help you, they probably would think JPlayer can be the solution for dynamic content but not everyone has good luck with it and their forum has many solutions for wordpress.

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
  •  
Subscribe to us on YouTube