onlinegamehacking@forumn.com


    making host your mp3 player

    Share
    avatar
    funtime
    ROOKIE
    ROOKIE

    Posts : 62
    Join date : 2013-02-12

    making host your mp3 player

    Post by funtime on Thu Aug 22, 2013 2:12 pm

    Home » Wordpress & Blogging Tips »
    3 Different Ways To Embed A Free MP3 Player On Your Website



    Ads by Google
    Download Android Apps Largest Collection of Android Apps. Save Data Cost. Try Mobogenie Now!

    MoboGenie.com/Download-Android-Apps

    Make a blog for free Philippines' easiest blog incl. a personal domain. Try free now!

    www.simplesite.com

    Answers to C++ Questions Browse & Post Software Development Questions for Free. Register Today!

    www.daniweb.com

    Monetize Mobile App Monetize Your Android or J2ME App in under 40 Secs. using AppWrapper

    Vserv.Mobi/Android_J2ME/AppWrapper



    Website owners should rejoice now that there’s more support than ever to embed codes for almost anything, chat widgets, call widgets, etc. If you need an MP3 player, you could search for widgets on sites like Widgetbox, or you could keep reading as we’ve gathered a collection of easy ways to embed MP3s. If you own a website, I assume you know a bit of HTML, which you’ll see a lot of in this article.
    There are 3 players you can use to embed MP3s. First, we’ll discuss what to use for single MP3s that you’re hosting. For additional MP3 files, you can either use the Yahoo! Media Player, which will detect all MP3 links and display them in a player for the website visitor to play or browse. If you’re building playlists of MP3 files, then the third method to embed an MP3 player should suit your needs, although it comes with longer codes than the previous two.

    Google Reader Podcast Player For Single MP3s
    The Digital Inspiration blog has the details on embedding MP3 files with the Google Player, but to summarize the article, you just have to insert this code, replacing “MP3URL” with the correct URL of the MP3 file hosted on the web that you want to embed in your index.html file that hosts the main page:
    MP3URL” width=”400″ height=”27″ quality=”best”>
    While this player is very simple in appearance, it doesn’t carry the Google logo, it even has volume controls and is probably one of the easiest ways to embed an MP3 player working fast.


    [color][font][font][color]
    Yahoo Media Player For Any MP3 URL On A Page
    So let’s say you already have a bunch of MP3 files listed on your webpage and you just need a player. Instead of inserting the Google player code for each and every one of those MP3s, you could just use the handy [NO LONGER WORKS] Yahoo Media Player.
    [/color][/font][/font][/color]
    [color][font][font][color]
    As long as you have linked to those MP3 files in your webpage, you can use the following code to include the Yahoo Media Player, which will detect the MP3 files and display the playbuttons next to each MP3 file.

    With that one line of HTML, you get a floating media player that can play all the MP3 files in one webpage.
    [/color][/font][/font][/color]
    [color][font][font][color]
    JW FLV Player For Playlists
    The JW Player is an open-source player for non-commercial use. You can download the player, which comes with a few more files, namely swfobject.js and player.swf, all of which you’ll upload to the same location where your website is. Having the JW Player for playlists means you’ll need to insert code in your index.html page and also have a separate XML file with the track list, which really isn’t that hard to put together.
    First, you’ll need to insert the following code on your index.html page:
    URLofSWFOBJECT.JS’>
    This text will be replaced


    var so = new SWFObject(‘URLofPLAYER.SWF’,’mpl’,’470′,’320′,’9′);
    so.addParam(‘allowfullscreen’,'true’);
    so.addParam(‘allowscriptaccess’,'always’);
    so.addParam(‘wmode’,'opaque’);
    so.addVariable(‘playlistfile’,’URLofPLAYLISTFILE.XML‘);
    so.addVariable(‘playlist’,'left’);
    so.write(‘mediaspace’);

    The items in bold are the ones you need to replace with the correct URLs of the object, player, and XML file (URLofSWFOBJECT.JS, URLofPLAYER.SWF, URLofPLAYLISTFILE.XML). If this code doesn’t show anything on your page, try this code that’s meant to embed MP3 players in blogs and sites like MySpace:

    URLofPLAYER.SWF‘>



    URLofPLAYLISTFILE.XML&playlist=left&dock=false’>
    type=’application/x-shockwave-flash’
    id=’single2′
    name=’single2′
    src=’URLofPLAYER.SWF
    width=’470′
    height=’300′
    bgcolor=’undefined’
    allowscriptaccess=’always’
    allowfullscreen=’true’
    wmode=’transparent’
    flashvars=’playlistfile=URLofPLAYLISTFILE.XML&playlist=left&dock=false’
    />

    As for the XML file, all you need to do is to save a file with the XML file extension using Notepad in Windows or any text editor. If you’re using Notepad, make sure in the Save type asfield has “All Files (*.*)”. Inside the XML file, paste this and replace bold items with the appropriate entries:


    <strong>Your MP3 Playlist</strong>
    http://YourWebpageHere/


    <strong>NAMEofMP3file1</strong>
    URLofMP3file1.MP3


    <strong>NAMEofMP3file2</strong>
    URLofMP3file2.MP3


    <strong>NAMEofMP3file3</strong>
    URLofMP3file2.MP3



    You can add more tracks if you want with the

    tag, just make sure you adjust the height of the player accordingly. This is what the player looks like with the playlist on the left.
    [/color][/font][/font][/color]
    [color][font][font][color]
    To customize the color of the player, head over to the setup page from the official JW Player website. This setup page will also let you input your desired player parameters (e.g. whether to autoplay or not) and preview the results, while you don’t even have to figure out the code as it painlessly spits out the code for you to just copy.
    [/color][/font][/font][/color]
    [color][font][font][color]
    Not only does this awesome, free player take care of an entire playlist, it also can play single MP3 files. You’d only need to insert this code in your index.html file:
    PATHtoSWFOBJECT.JS‘>
    This text will be replaced


    var so = new SWFObject(‘URLofPLAYER.SWF‘,’ply’,’470′,’24′,’9′,’#000000′);
    so.addParam(‘allowfullscreen’,'true’);
    so.addParam(‘allowscriptaccess’,'always’);
    so.addParam(‘wmode’,'opaque’);
    so.addVariable(‘file’,’MP3URL‘);
    so.addVariable(‘duration’,’DURATION‘);
    so.write(‘mediaspace’);

    You should also input the duration of the MP3 file, or you can also omit that line altogether.
    If you would rather not mess with codes and would rather just copy and paste embed codes without having to modify them, you can always upload single MP3 to an online storage site, such as 4shared and Box.net, which offer embed codes for MP3 files.
    [/color][/font][/font][/color]

    avatar
    funtime
    ROOKIE
    ROOKIE

    Posts : 62
    Join date : 2013-02-12

    Re: making host your mp3 player

    Post by funtime on Thu Aug 22, 2013 2:12 pm



    <signature>

      Current date/time is Sat Oct 20, 2018 4:22 am