Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AudioClip Instance In An Applet  RSS feed

 
ch praveen
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends,
I have implemented the following line in my chat application, 'ac.play()' where ac is an instance of AudioClip. Sometimes it's working fine, but sometimes destroy() method of an applet is called automatically, eventhough I have not closed the browser's window. Iam not able to trace this uneven behaviour eventhough I have embedded, 'ac.play()' stmt. in a try - catch block. Finally in javaconsole window of IE, 'no audio device' is displayed. Can any one help me how to overcome this strange behavior of AudioClip.play() method.

Regards,
Ch.Praveen Kumar.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!