This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Problme Running Midi (.mid) files in Applet  RSS feed

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to run (play) an audio (.mid) file from Applet. This applets picks the path from http protocol.
Initially this applet was not loading in browsers on some computers (IE 5 or 5.5). Actually this applet was compiled on J2SDK1.4.1 & was not loading on lower versions.
Now i have compiled this applet as below :
javac -target 1.1 RingtoneApplet.java
Now applet is started in browsers on every machine we have, but some browsers are not playing midi file.
Machine those having J2SDK1.4.1 are playing midi file perfectly (these were playing earlier also when compiled with J2SDK1.4.1).
But machine those having java versions lower than J2SDK1.4, are not playing midi (.mid) file, however applet is started. Their browsers java console gives error :
NativeAudioStream : invalid file type
Netscape Navigator shows the same error :
NativeAudioStream : invalid file type , even on the machines having version J2SDK1.4.1.
Can any one help me out, where is the problem.
Does system java/jre has anything to do with browsers java/jre.
(I am mainly concerned with IE 5.0, IE 5.5 , IE 4 series & latest one.)
Please help me out.

Thanks,
Manoj


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!