• Post Reply Bookmark Topic Watch Topic
  • New Topic

error message occured when video played

pingkan paula
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm developing multimedia application which can play audio and video files
The audio went well but when i played the video I got this exceptions on my console

Running with storage root DefaultColorPhone
Exception in thread "JMF thread: com.sun.media.codec.video.customjmpx.CustomJmpx@5d3ac0 ( prefetchThread)" java.lang.IllegalArgumentException: Requested value 7.9588003 exceeds allowable maximum value 6.0206.
at javax.sound.sampled.FloatControl.setValue(FloatControl. java:178)
at com.sun.media.sound.DirectAudioDevice$DirectDL$Gain.set Value(DirectAudioDevice.java:838)
at com.sun.media.renderer.audio.device.JavaSoundOutput.set Gain(JavaSoundOutput.java:157)
at com.sun.media.codec.video.customjmpx.CustomJmpx.setAudi o(CustomJmpx.java:1073)
at com.sun.media.codec.video.customjmpx.CustomJmpx.doPrefe tch(CustomJmpx.java:480)
at com.sun.media.PrefetchWorkThread.process(BasicControlle r.java:1350)
at com.sun.media.StateTransitionWorkThread.run(BasicContro ller.java:1259)
problem running playerjavax.microedition.media.MediaException: Unable to prefetch

The size of the video files is 691 Kb and i'm using sun wtk 2.2
Looking for your enlightment please
Any feedbacks will be fully appreciated

However, this is the code snippet

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!