Results 1 to 7 of 7
  1. #1
    New Pligger zdestiny's Avatar
    Joined
    Jul 2007
    Posts
    10
    Thanks
    Received:0
    Given: 0

    Embedding an mp3 player

    I'm trying to modify the Embed Videos plugin to allow mp3 files to be played through a flash mp3 player. I added this code and allowed <mp3> tags but its not working.

    Any help?

    Code:
    // code to replace <mp3> tags with
    $mp3Code = '<embed src="http://www.site.net/player.swf?player_title=Click to play&amp;song_url=$1" quality="high" bgcolor="#ffffff" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" align="center" height="20" width="450"/>';
    // replace <mp3> tags with the mp3 code		
    $displayed_story = preg_replace("/\<mp3\>(.+?)\<\/mp3\>/is", $mp3Code, $displayed_story);
    Im using the XSPF player.

  2. #2
    Constant Pligger tbones's Avatar
    Joined
    Apr 2007
    Posts
    1,042
    Thanks
    Received:1
    Given: 0

  3. #3
    New Pligger zdestiny's Avatar
    Joined
    Jul 2007
    Posts
    10
    Thanks
    Received:0
    Given: 0
    its the same as what i posted above..and it still doesnt work for me.

  4. #4
    Constant Pligger tbones's Avatar
    Joined
    Apr 2007
    Posts
    1,042
    Thanks
    Received:1
    Given: 0
    Have you tried with Firefox? It&#180;s strange but at my installation the player appears only if you use Internet Explorer.

  5. #5
    New Pligger somebidder's Avatar
    Joined
    Jun 2009
    Posts
    2
    Thanks
    Received:0
    Given: 0

    audio mp3 player

    is there one with an automated playlist? meaning will it pull from an XML file or other source to play x number of songs in a loop?

  6. #6
    Pligg Developer/Coder/Designer ChuckRoast's Avatar
    Joined
    Dec 2005
    Location
    Pliggville USA
    Posts
    9,118
    Thanks
    Received:396
    Given: 73
    Version
    SVN Build
    Site
    http://Pligg.com/chuckroast
    Quote Originally Posted by somebidder View Post
    is there one with an automated playlist? meaning will it pull from an XML file or other source to play x number of songs in a loop?
    Check out the new Media Master Module.
    Although it doesn't do xml ( it could be modified easily) it does other types of play lists such as asx, m3u, etc.
    Help Keep ChuckRoast Home
    Today's Pligg Blog Post


  7. #7
    New Pligger somebidder's Avatar
    Joined
    Jun 2009
    Posts
    2
    Thanks
    Received:0
    Given: 0
    thx chuckroast - is there a demo I can see before I shell out the $20?

Similar Threads

  1. mp3 upload and player
    By asachs in forum Questions & Comments
    Replies: 2
    Last Post: 03-18-2011, 04:40 PM
  2. Flasm mp3/flv player integration
    By bgg in forum Questions & Comments
    Replies: 1
    Last Post: 03-06-2008, 02:55 AM
  3. MP3 player?
    By newskicks in forum Questions & Comments
    Replies: 5
    Last Post: 08-10-2007, 10:57 PM
  4. Problem with MP3 Player mod
    By zdestiny in forum Questions & Comments
    Replies: 3
    Last Post: 08-07-2007, 06:05 AM
  5. Embedding pligg
    By ozzie135 in forum Questions & Comments
    Replies: 4
    Last Post: 04-17-2007, 07:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg