Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4580442
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:47:03+00:00 2026-05-21T20:47:03+00:00

I am using Yahoo Media Player for playing MP3 songs on my website. I

  • 0

I am using Yahoo Media Player for playing MP3 songs on my website.

I have put some static MP3 links on site.
For e.g.

<a href='1.mp3'>Song1</a>
<a href='2.mp3'>Song2</a>

And I have put the YMP JavaScript API code also.

Now, I want to load the songs dynamically…

For example if user clicks on a button I want to load a complete new play list to the player.

//Something like this
var clickEventHandler = function(){
  YMP.removeAllSongs();
  YMP.addSongs(mp3_links);
  YMP.play();
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:47:04+00:00Added an answer on May 21, 2026 at 8:47 pm

    This may help you, use this:

    <script>
    /** On Yahoo Media API Ready **/
    var yesReady = false;
    YAHOO.MediaPlayer.onAPIReady.subscribe(function(){
      yesReady = true;
    });
    
    function play(){
      //Capture the URL of the song
      var url = document.getElementById('url').value;
      //Put it in Href of Song Link
      document.getElementById('link').href = url;
    
      //After that Play the Song using YMP
      if(yesReady){
        YAHOO.MediaPlayer.addTracks(document.getElementById('song-div'), 0, true);
        YAHOO.MediaPlayer.play();
      }
    }
    </script>
    
    <div id='song-div'>
      <a href='#' id='link'>Song Name</a> 
    </div>
    
    <input type='text' id='url' />
    <input type='button' onClick="javascript:play('url')" value='play'/>
    

    Let me know if you need more help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using yahoo web player for playing some files. It's working fine in Chrome.
I'm building shopping mall website using Yahoo solution. My products have multiple options which
I have some XML and an XPath query. I'm using Yahoo! widgets, so I'm
I have Drag/Drop functionality in my page embedded using YAHOO.js which is initalized at
I am using Yahoo Api, I have implemented random sleep method in addition to
I have a javascript file that I minify using the Yahoo YUI. When I
I have this situation, I am using Yahoo Yui Compressor and my MSBuild file
im developing an iphone app using yahoo weather service ( i have a key
YSlow I was testing some of my websites using Yahoo's YSlow and noticed the
I have a self hosted wordpress site. I have few posts with embedded mp3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.