MP3 player code help.. slight tweaks

http://www.clairmonthumphrey.com/Site/
The flash mp3 player I've done for this site is giving me a
few problems...
The code is attached but this is what happens though...
..In this line...
sa.push(nodes.attributes.url);
when it stays like that the song plays fine but the trackInfo
doesn't come up but when I replace it with this code.. the song
doesn't play but the trackInfo comes up..
sa.push(new Song(nodes.attributes.url,
nodes.attributes.track));
This is what the songs.xml file looks like...
<?xml version="1.0" encoding="UTF-8"?>
<songs>
<song url="AmazingGraceMedley.mp3" track="Amazing Grace
Medley" />
<song url="MidnightCry.mp3" track="Midnight Cry" />
<song url="YouareSoWonderfulRemix.mp3" track="You Are So
Wonderful" />
<song url="TrustIntheLordFirstVersion.mp3" track="Trust In
the Lord" />
</songs>
What am I doing wrong...
A few other quirks need straightening out...
The volume bar only increases the volume the first time..
after subsequent tries it neither increases nor decreases...
The playPause_mc button pauses but doesn't play again when
pressed...
Everything else is under control.. Can anyone help?
See below the action script....

Hi
I too am interested in writing a Mp3 player but am unsure what is the best programming language to write it in. Java is my prefered language, but it seems that it will not be posssible as their are no mp3 libraries that support mp3 file playing in the current version of java.
I could use javazoom support classes but I prefer to write the programme myself.
So when will Sun re-release java, so it can play mp3 files?
Or what other language would be apporiate for a mp3 player?
Thanks
Ron

Similar Messages

  • Looking for J2ME MP3 Player Code

    Hello,
    I just started writing a J2ME MP3 player application. The MP3 files are stored in the device's flash memory, not streamed through the air. The user interface would be simple and device-independent. I am searching for source code that I can learn from or modify. Is there a J2ME MP3 player open-source code?
    T.I.

    i've got one but i will never give you the code !!!!
    i can help you with your code (errors, debugging,...) and give you some tips to start:
    1- search on google
    2- start coding
    3- test your app and come here when you will have a problem with the Manager.createPlayer.....
    good luck !

  • Mp3 player, please help

    I want to write and Mp3 player in Java. For now I just want it to work in the command line and I will add the GUI later. The basic functionality I want is play, pause/stop, fast forward and rewind, volume up/down. I have heard that Java.Sound used to have a built in mp3 player but that they took it out because of copyright issues. Too bad.
    I have allready found some nice tutorials on how to play Wav files. I really need to find a good decoder that can convert in real time and use it in my program. Also fast forward and rewind is giving me problems even with a basic wave file.
    Any help would be greatly appreciated. Especially if someone can provide some source code for a very basic Mp3 player.Thank you.

    Hi
    I too am interested in writing a Mp3 player but am unsure what is the best programming language to write it in. Java is my prefered language, but it seems that it will not be posssible as their are no mp3 libraries that support mp3 file playing in the current version of java.
    I could use javazoom support classes but I prefer to write the programme myself.
    So when will Sun re-release java, so it can play mp3 files?
    Or what other language would be apporiate for a mp3 player?
    Thanks
    Ron

  • Putting my music on an MP3 player.  HELP!

    I'm a new user to ITunes and I cannot figure out how to put my music on the MP3 Player.   Can someone please help me figure this out?  
    Much Appreciated. 

    You would have to read the directions that came with yout mp3 player.
    Itunes syncs with Apple products.

  • Re: j2me mp3 player code

    Please don't cross-post.
    http://forum.java.sun.com/thread.jspa?threadID=735062

    how do i create playlist in J2ME...what are the back end tools are requared for that.
    and if I am using some new libraries like mp3 supporting one then would the JVM on which i load the final class file will need the new libraries to be installed??? if yes then how can i reduce the size of my application file???

  • Syncing mp3 player with iTunes...help

    I have a Trio MP3 player (yes, I know, that is most of the problem, but bear with me)
    iTunes will not allow me to copy song files and convert them to MP3's so I can put them onto the MP3 player. (heaven help me, I miss my iPod) The MP3 player will only play MP3's, not mp4's nor aac files.
    I have tried this by placing the songs I want into a new play list - selecting all files in new playlist - go to advanced - select convert selection to MP3...the mac says that it is converting the requested files to MP3 format. Yet, it only turned them into AAC files. I have changed the preferences of importing and burning to MP3 (from AAC), but to no avail. I repeat the steps above and get the same result.
    I have also moved the songs into a file on the desktop, but connot convert them from there.
    iTunes also will not let me change the AAC files I purchased from iTunes into MP3's...they are "protected".
    Help.
    I wasn't able to buy another iPod after ours was stolen, so got this instead. All I want to do is be able to take the songs I legally purchased from iTunes and the ones I importeed from my own legally purchase cd's and put them on this MP3 player. ( I cannot reimport the cd music, those were stolen along with the iPod)
    Help!

    Have you tried updating your iTunes Library to iTunes Plus. This will enable you to convert those purchases, as iTunes Plus songs and music videos are DRM-free. You can update your library for 30¢ a song, as long as your purchases are available in the new format.
    Check it out:
    http://docs.info.apple.com/article.html?artnum=305567
    Peace!

  • Flash mp3 player HELP!!!

    i am tying to add a flash mp3 player to my blog posts to have samples of the scores on each page using this:
    http://creativetechs.com/tipsblog/embed-a-free-flash-mp3-player-on-your-blog/
    the code i have is this:
    <object type="application/x-shockwave-flash" width="400" height="170"
    data="http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/xspfplayer.swf?playlisturl=http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/playlist.xspf">
    <param name="movie"
    value="http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/xspfplayer.swf?playlisturl=http://web.me.com/cbarrywdw03/KlausBadelt/MusicPlayerExample/playlist.xspf" />
    </object>
    i am tying to get it in the blank empty space on the right above the track listing and to the right of the cover as seen here:
    http://web.me.com/cbarrywdw03/KlausBadelt/CreditsBlog/Entries/2010/4/1_Die_Jagd_nach_der_heiligen_Lanze_-_OriginalScore.html
    as you can see i can only get the player to show up on the left anywhere form the top to the bottom.
    please help me in getting it in that empty space mentioned above, thank you and take care!
    chris
    Message was edited by: MacAVUser08

    You should paste the object code in a HTML Snippet.
    All your songs and playlist should be in the MusicPlayerExample folder.
    And then test that all performs as it should.
    If you do that you have no problems.
    But you pasted the code in the HTML page itself after publishing. If you do you have to check the path to all the files.
    You would have found that there is no file here :
    http://web.me.com/cbarrywdw03/KlausBadelt/Credits_Blog/Entries/2010/4/swfobject. js
    Rule of thumb : Keep custom stuff out of the Site folder iWeb creates.
    I pasted your code in a HTML Snippet and 3 demo MP3s played in the flashplayer. So no problem there.

  • Please help me! My mp3 player won't download m4a and m4p fi

    I'm trying to download some music from my pc onto my mp3 player, but for some reason it won't download m4a or mp4 files. I brought a load of music from iTunes last night, but they are all m4a/mp4 files. I'm new to mp3 players, please help me!
    ?Message Edited by Ashley32 on 0-03-200808:29 AM

    Actually if you purchase music, all MP3 (Protected - DRM and Unprotected) would work on the Zen. It is only m4a files which needs to be Unprotected-AAC. Like I said, Apple just want to protect their own industry but they are now opening up their market now by selling unprotected AAC at a slightly higher price.
    There are places like mp3.com which offers music which you can use.
    Alternati'vely, you can purchase music CD and use the provided software to extract the music to transfer to your Zen.Message Edited by eddy2099 on 0-03-200807:6 PM

  • How to transfer all music in my Zen Micro to either my PC or another mp3 player....help ple

    i have a creative micro zen with about 000 handpicked and some very hard to find songs on it...i don't really have trouble with the player itself, just the software and the continous problems seems like everyone is having with something... my question is this..........if i wanted to get another mp3 player as a backup in case this one crashes, then what does everyone think about one of the smaller ipods? what about their software and such? and, if i do decide to get an ipod, then how would i transfer all these 000 mp3 songs onto the new ipod? would there be an issue with the fact that they are not bought from itunes?? would it not be safe to do that? and if it is okay to do that,? how would i transfer the songs back onto my PC, as i have tried everything suggested on this board recently in trying to do that using Mediasource and it just won't work even after downloading all new plugins etc. if someone has an idea about this, please let me know step by step if possible about how i can get these songs that are valuable to me from my zen micro, to my computer, and then onto another mp3 and if ipod (nano for instance) is a wise choice or if there is another player in the same category that others have found they have waaaay less problems with and better support/service with it's?any help anyone gives would be greatly appreciated!? i appreciate all the suggestions to my other questions as well!?thanks,barb

    for a new mp3 player, i would get this one, its awesome (and the one i would get if i had a choice instead of my microphoto that broke)... here's a link
    http://reviews.cnet.com/Samsung_YP_T9_4GB_black/4505-6499_7-3208083.html the 4gb one is $80, the 2gb one is $30... so thats cheaper than an ipod, and much better features and stuff

  • Can I transfer my itunes to a MP3 player?  newbie, help please

    Hi, I need your help. I have a HP Media Center PC with all bells and whistles. I just learned about itunes. I downloaded a free song. I have also gotten 5 songs for free from a website called Connect (run by Sony).
    what I was expecting to do was to go to Radio shack and purchase an MP3 player for $59.99. It's about all I can afford.
    then I found out that the songs I downloaded from Connect cannot be transferred to an mp3 player unless it is a Sony MP3 player. The mp3 player in Radio Shack was not a Sony. but I did ask the salesman if I could do itunes with this and he said "sure". but I'm not sure now. I have read about all kinds of formats with downloading these songs. such as OPENMG format and something called ATRAC. See where I'm getting confused?
    What I need to know is this: If I purchase songs from itunes and it goes on my hard drive, can I then purchase the mp3 player and transfer the songs so I can go for a walk and play my mp3 player. I can't afford an ipod.
    Do I have to buy a special mp3 player to be able to use itunes. I can't find any information on this on the site.
    I am a disabled person and could use some help.
    thanks to anybody who can help me. Just need to know exactly what I should be buying to play songs on and do I have to download the songs in a special way or does itunes just do it for me. Also, I don't have an apple computer. but I have an APPLE user ID. Very confusing.
    Melody

    Okay, let me see if I have this right.
    I have a HP Pavillion Media Center. this should allow me to burn cds, right? I have never done this in my life but believe me I learn fast. I have two drives that I'm looking at right now on my tower.
    The top drive says LightScribe DVD+-/CD Writer
    The other drive says CD rom.
    I presume, to burn a cd (or whatever it's called), I use the top Lightscribe thing, right?
    so I guess I have to get a blank cd rewritable thing, place it in the top drive and copy the sonic stage (sony) songs onto that right? then I can get the ipod and transfer from the newly burned cd into the ipod, right?
    I have absolutely no idea how to accomplish this but I'm willing to at least do the first step and burn the cd.
    Now, here's my question. Many years ago, when I had my other HP pavillion,it came with a re-writable drive. I tried to burn something to it and I did not know what I was doing. I do remember that the cd was some kind of RW thing.
    I probably have one of those in my house. They are over 5 years old. Is this what I have to use to put the songs on it.
    do I have to go to the computer store and buy a new blank cd-rw (if that is indeed what I will be using).
    I want to know exactly what kind of blank cd thing I have to put in the drive. And do I use the one marked Lightscribe.
    See, once I know what to do, I'll figure out how to do it.
    I'm going to search my room to find one of the old blank ones but I won't use it until you say, "yes, use it.".
    I know I used to have a case of them. Never used them but they are still around.
    Are they still compatible with my windows xp, HP Pavillion media center.
    And I should tell you what I tried to do last night. I was researching all about converting files and I saw something that said "drag the files into your itunes folder and you should have the songs in their". so stupid me, I go to my start menu, open up the explore thing, I find the "sonic stage" thing, I see the itunes thing, I dragged and sonic stage into the itunes thing and sure enough, right in front of me a little message popped up showing me it was "copying files to itunes". So I said "holy sh*t, I actually did it", "i'm going to see my songs in my itunes folder". Well, that didn't happen. I opened up my itunes library and only my original itunes song was there. No songs from the sonic stage library was put in.
    I have no idea what was copied into what. So what exactly did I do?
    thanks for any help about the cd burning thing.
    I mean, I have this HP Pavillion Media Center and I want to be able to figure out how to use it before I turn 80.
    Thanks much.
    Melody

  • I just downloaded the newest version of Itunes.  I can't delete anything and I can't sync to my MP3 player.  I tried deleting it and installing an earlier version of Itunes but it can't read the library.  Please help.

    I just downloaded the newest version of Itunes on my Windows 7 PC.  I can't delete anything and I can't sync to my MP3 player.  I tried deleting it and installing an earlier version of Itunes but it can't read the library.  Please help.

    With iTunes 11 on PCs the drop-down menus are hidden by default - control-B should get the menus to show
    This screenshot is from a Mac, but it should be similar on a PC :

  • HT1391 I recently purchased music from power music. I downloaded it to I tunes. I don't know where to look for it in itunes. I am not that computer savvy but I would like to put it on my mp3 player. Any help would greatly be appreciated.

    I RECENTLY PURCHASED WORKOUT MUSIC FROM POWER MUSIC. I HAVE DOWNLOADED THEM TO ITUNES. WHERE DO YOU LOOK FOR THE DOWNLOADED FILES IN ITUNES? I AM NOT REALLY COMPUTER SAVVY. I WOULD ALSO LIKE TO DOWNLOAD THEM TO MY MP3 PLAYER  APPRECIAAND HOW DO I GO ABOUT DOING THAT? THANK YOU FOR ANY HELP. GREATLY APPRECIATED.

    Please turn off your caps lock.
    All caps indicates shouting, is considered rude, and is difficult to read.  Many will not read such posts.
    Your music will be in Library>Music on the left side of the itunes page.
    Itunes only syncs with Apple devices.

  • Need help embedding a mp3 player swf with xml playlist

    Im a noob to Flash (started tuesday, haha) and so far everything is coming along just fine, but i need to put music in the swf. I have a button set up that slides a swf mp3 player in from the side but i dont know how to make the playlist work with it.
    The player is from this site:
    http://www.bezzmedia.com/swfspot/samples/flash8/Mp3_Player_with_XML_Playlist
    Using the xml playlist with html is simple enough, but im not sure how to use it with Flash Catalyst. Is there an easy way to do this?
    My original plan was to have a text list of the songs with a play button next to each one, then when you click on the play button it would set the state of any other songs to Stopped so you can just pick what song to play and if another song was playing it would stop. Im not sure how to do this either (like i said, i started learning this week), so i just tried embedding someone else's (ugly) mp3 player.
    Anyway, if anyone knows a relatively easy way to have a playlist in my swf please let me know. Thanks!

    If I understand you correctly, you've imported a SWF into Catalyst using Import Artwork on the File menu. When your app runs, you want to pass that swf a parameter that tells it what URL to read a data file from. The SWF is not one that you've created, rather, you got it from some web site.
    This is not something that you can do in Catalyst. However it should be possible to do in Flash Builder. I found an article discussing several ways to do it, at http://www.actionscript.org/forums/showthread.php3?t=175951. One idea is the following code snippet
    <fx:Script>
        <![CDATA[
        import flash.events.*;
        private function setVars(event):void
            event.target.content.yyyyyy = "zzzzzz";
        ]]>
    </fx:Script>
    <mx:Image source="xxxxx" complete="setVars(event)" />
    where "xxxxx" is the path of the SWF (you can put it somewhere in your Flash Builder project, or reference it via an URL), and yyyyy is the name of the parameter that the SWF expects, and zzzzzz is the path to the data file. The <Image> tag is what Catalyst created when you imported the SWF. (btw.the Image and SWFLoader tags are almost identical).
    I hope this gives you enough info to make progress.

  • Need help! My mp3 player cannot be detected by my laptop as connect

    Hi friends,In my previous laptop, i have no problems sync-ing my Creative Zen V Plus to it. Then i have a new laptop and?installed all the Creative programs as i have previously done. Now that i connect my mp3 player to the new laptop, it wouldnt recognize it!My laptop makes sounds that confirm that a hardware was connected to it, but it wont recognize it. Creative Media explorer says that no device is connected. Not even my Windows media explorer would find my device connected. Help!Thanks a lot!

    Try:
    iOS: Device not recognized in iTunes for Windows

  • HELP How to download music from Musicstore to play on MP3 Player

    I just bought a okley sunglasses with MP3 Player... How can I buy music in a MP3 format on internet... Apparently the only way to buy/download music from internet on a mac it's with the music store but then it won't allow me to convert it into a MP3 file!!!! Do you have any solutions.. please help me i'm desperate... thanks

    There is a workaround.
    You have to burn purchased music on Audio CD first, then re-import it in the format of your choice.
    If you buy complete albums, this method is economic and you have a backup.
    For single purchases this won't be much of a help.
    M

Maybe you are looking for

  • INSANELY SUPER SLOW conversion times for MP4 to Quicktime Movie..HELP!!!!!!

    Hi folks... I am frustrated. I am a student in a Film Editing class. I have an assignment where I have to take a classic film and create a movie trailer for it using the original film and editing in FinalCut Pro. I started off by using Handbrake to c

  • Flows cross companies

    Hi experts How can I customize a purchase flow (MM) in the company A on the basis of sales flow in the company B (cross company flows) ? I want to create a purchase order and goods receipt in company B when posting goods issue in the flow of sales of

  • System message - Base document exchange rate cannot be used

    Hi! I need an Information ... when I use the function "Copy From" i get the Draft Document Wizard where i set "Use Exchange Rate from Base Document." But when I select "Finish" I get the following system message: "Basic Document Exchange rates can no

  • Adding Flash animation to dreamweaver

    Hi, I've created a Flash animation as the first thing to show on my webpage in the index page. And it takes the whole screen. And it contains links in the flash animation. How can I link the links in Flash to the pages in dw? Thanks a lot! Esther

  • CANopen Basics cRIO

    Hello, I'm trying to use this example of CAN open with the cRIO but i'm having some difficulties!  I'm using a cRio 9022 with chassis 9116 and Fpga CAN module 9853 and I need to comunicate to a LinMot controller using CANopen! Has someone used this e