• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error message occured when video played

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



Pingkan
 
What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic