Playing audio cd's
I have made a program that plays mp3's and cd's using JMF 2.1.1e. It gives you a list that you chose what you want to listen to from. It plays both of them just fine.
It plays cd's fine, but I don't think I am doing it in the correct fashion. When you eject a cd that it is playing from, it doesn't hang, but it doesn't seem to realize that the source is not there anymore. Also, if it is playing a cd and I use System.exit(0); it will keep playing (I have a feeling that is from thread complications).
Anyhow, if anybody knows of a way that that will play cd's and produce either no errors or catchable errors I would be very happy for some help.
|