Can not play mp3 files

Hi,
This is my code...
package sampleplayer;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
var song=Media{source:"G:/Shono amra ki shobai.MP3"}
var player=MediaPlayer{media:song}
player.play()and its giving the following error
FX Media Object caught Exception java.net.URISyntaxException: Illegal character in opaque part at index 2: G:/Shono amra ki shobai.MP3
but I have tried creating a video player to play a .flv file.It works fine.
Please help...

Several messages here tell there is an issue with media player and paths with spaces...
Note also that source is an URI, must look like: "file:///G:/Shono amra ki shobai.MP3" (or use {__DIR__}).

Similar Messages

  • Can not play wav file on envy touchsmart

    can not play wav files from my emails on my hp envy touchsmart. have tried to download other apps, but nothing is working. help!

    Hi terrylyn11,
    What media player apps have you tried to use to play these files? Are other music file formats playing ok?
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • [solved] I can't play MP3 files in JuK

    Hi
    When i try play a mp3 file, with juk, the system says this:
    [zuargo@zuargo-archlinux ~]$ juk
    [zuargo@zuargo-archlinux ~]$ xine is asking to seek behind the end of the data stream
    I have installed xine-phonon and it is uses default.
    I have tried installing gstreamer phonon (with all official of the repository plugins) but I have the same problem... I can't hear anything...
    I have tried installing pulseaudio but... nothing...
    I have tried installing oss but.... nothing
    I have tried erasing the file ~.xine/catalog.cache but... nothing...
    some web pages says solved it issue installing a package called libxine-ffmep but it is not in pacman...
    really I tried many options but I can't solved this problem
    of course, I can play mp3 files in the command line (throughout mpg123) and they sound good...
    sorry for my bad english I speak spanish
    Last edited by zuargo (2009-08-25 02:20:27)

    AdrenalineJunky wrote:
    from everything i'm reading, it seems like that error message is normally associated with xine-ffmpeg being missing...
    phonon-xine depends on xine-lib which depends on ffmpeg, but its probably worth checking to make sure they are installed.
    I have installed xine-lib
    Rasi wrote:Since there doesnt seem to be an obvious solution, simply use the gstreamer backend.
    I have used the gstreamer backend and it not works... I can't hear the mp3 files...
    another idea?

  • Can not play avi files; please help!!

    i have a imac with Mac OS X 10.4.11; i can't get sound on any avi files, if take a mov file and convert it to avi, no sound; a friend give a disc with several avi movies, but i dont hear anything.
    can anybody help me please

    Download and install Perian from http://perian.org/
    You should read this support page http://perian.org/#support in case you need to delete older codecs.
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them). However it should be noted that Perian is not an internet plugin and will not play DivX files imbedded on a website. For that you will need the DivX Player browser plugin available from http://www.divx.com/divx/mac/

  • Media Player - can't play MP3 files

    I'm have trouble playing my MP3 files on Q10. (Car doesn't support Bluetooth music - only voice commands, hands free calling).
    My MP3 files are stored on micro 8gb card - when connecting USB cable phone tells me it "can't connect to my computer(?)"
    The USB connection DID work when I realised my 'Phone book was empty'. On voice commanding the settings to install Phone book (which it did) I am back to the 'unable to connect to computer ' message. Are these two events linked?
    What's going on?!
    My old Blackberry Torch with card only (No SIM - 'cos it's in my new phone) plays MP3 files fine - but I want my Q10 to play the files.
    Help?

    Thank you for your answer. My problem is with a direct link, [http://www.vocacionpasionista.com/Novedades/Un%20deseo%20de%20paz.mp3 this one] .
    The data URI seemed to work but just while it's loading, when the page loads the player disappears.
    The direct link doesn't work at all, just like with mine, that window pops up.

  • N900 can not play Media File like MP3 etc

    Hi any one can help me my N900 do not play even mp3 song which it used to play I even have installed Extra Decorders Support.

    What does it do when you try to play the file? have you tried rebooting? (mine stopped playing audio tracks after I tried to play a 1080p video for a test.. it was very upset.. a reboot fixed it)

  • I tunes does not play mp3 file, but quick time does. why?

    I have download mp3 files from internet and some of them i tunes doesn't not see and play. I tried to play it with quick time- good, not problem. But i want to add it to my i pod. How can i do it? How can i play it with i tunes? maybe i need some codecs? please help me

    It could be you're not adding the files the right way. In more seldom cases:
    [Topic : MP3 Scan+Repair - an ID3 tag evaluator for the Mac|http://discussions.apple.com/thread.jspa?threadID=2020936]
    MP3 Scan+Repair (including sources): [http://triq.net/mac/mp3-validator-mac-os-x]

  • ITunes not playing MP3 files.

    Ever since I updated to iTunes 10.5 yesterday iTunes doesn't play anymore MP3 files. MP4 files work but not MP3 files. Is there a fix for this?

    Some exact thing here on my XP machine at home (old Compaq sempron amd processor). No issues on my office (Lenovo Core2 laptop runnign same OS....
    No issues on Vista, Win7, stremaing and Airplay devices either.
    Bizarre...

  • Can't play mp3 file through RTP

    I created an server/client application to play remote file through RTP using JMF. However, it works with *.wav and video track of mpg file only, can't work when playing *.mp3 and audio track of mpg file. Do anyone know the reason?

    No any errors.
    I just follow the code sample "AVTransmit2" & "AVReceive2" and change the format.
    I change the format of mpg file audio stream to G723, it works now! So I think I used wrong format, but I found there is only two supported RTP format for mp3 file and it doesn't work for both of them.

  • How can I play MP3 files with time capsule on a stereo set?

    Hello,
    Can anyone offer ideas/suggestions how to play my mp3 files (itunes) from a Time Capsule device? I use a plain Philip 5.1dts set. I would like to be able to select music with either my iphone, ipad ir macbook.
    thanks, Anton

    You will need to add an Apple - AirPort Express to be able to stream your iTunes data to your amp/speaker setup.

  • N91 8GB CAN NOT PLAY MP3 FORMAT?!!!

    HEEL.MY N91 8GB CAN ONLY PLAYWMA FORMAT.I RESEAT MY PHONE BUT IT CAN`T PLAY.WHAT AM I DOING????

    What message do you get when you try to play MP3?
    what's the bitrate of this Mp3?, it should be less than 300kbps otherwise it may not play.
    Is it a variable bitrate or constant bitrate MP3?
    What type of metadata does it have, some metadata formats are not supported.
    640K Should be enough for everybody
    El_Loco Nokia Video Blog

  • Muse site will not play mp3 files on iOS devices

    I'm testing my new/first site using Muse CC 2014 and finding that audio files (MP3) will not play on iOS 7.x devices.I am using the MP3 Player plug-in from Musethemes.com. They have yet to respond to my support request 3 days ago so I am hoping someone here might have encountered the same issue. What alternatives would you suggest?

    Never mind everyone. Musethemes got back to me. The issue is the link for each MP3 file points to assets/filename.mp3 in the desktop version but since the tablet and phone versions have their own sub-directories the link needs to properly point to the parent directory where the assets folder is located i.e. ../assets/filename.mp3. On to the next adventure.

  • Can not play iMovie file with PC

    When I play a video file exported from iMovie in Full Quality (HD AIC), then I can play this file in QT on my MAC. When I like to play the same file on a PC, I get a blank screen. Is de AIC missing in the PC version of QT ? How can I solve this problem ?
    Powerbook G4   Mac OS X (10.4.8)  

    Try this:
    http://www.maclife.com/article/howtos/how_export_contacts_address_book_pc
    Hope it helps.

  • HELP! Can not play quicktime files and no audio when it does!!!

    i tried opening a .mov file and the message said "you are missing a component that is necessary to open...blah, blah." then it gave me the link to the quicktime site for the 3rd party filters...but which one do i need? there were several and i have no idea. plus, the audio thing is making me mad.
    quicktime was pretty much didn't exist, so i popped in a itunes install disk and re-installed quicktime and that corrected my video problem. but now i'm having all this other stuff. and help will do. thank you.

    "quicktime was pretty much didn't exist, so i popped in a itunes install disk and re-installed quicktime"
    You lost me.
    I have never heard of an "iTunes" install disk. Where did you get this disk from?
    The latest version of QuickTime is v7.1.3. Is this the version you currently have?

  • Can not play SWF File.

    I keep getting this message, content on this page requires a newer version of Adobe Flash. I have uninstalled and reinstalled Adobe Flash a number of times. Can anyone help me?

    Hello,
    in addition to Ben's hint, please have a look at Nancy O.'s answer concerning the use of "swf": Re: swf looping. ("Flash is a dead web technology ...)
    ... and all in all, best would be that you send us the link to your website, so that we can better analyze.
    Hans-Günter

Maybe you are looking for