Skip to main content

WTK 2.2 - Running media player

1 reply [Last post]
Anonymous

Hello ,
i tried playing a sample video file on WTK with version 2.2.
video file size is around 690 kb.

while running i got the following exception.
does anyone know the cause of this problem ?

Exception in thread "JMF thread:
com.sun.media.codec.video.customjmpx.CustomJmpx
@1fc2fb ( 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.setValue(DirectAu
dioDevice.java:850)
at
com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSound
Output.java:157)
at
com.sun.media.codec.video.customjmpx.CustomJmpx.setAudio(CustomJmpx.j
ava:1073)
at
com.sun.media.codec.video.customjmpx.CustomJmpx.doPrefetch(CustomJmpx
.java:480)
at
com.sun.media.PrefetchWorkThread.process(BasicController.java:1350)
at
com.sun.media.StateTransitionWorkThread.run(BasicController.java:1259
)

_____

From: A mailing list for KVM discussion
[mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Raghavendra K. Naik
Sent: 09 January 2007 19:33
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Clarification: Web application development

hello
i am trying to read video file from system dir like this.
InputStream ins = getClass().getResourceAsStream(video);

if i make use of WTK with version 2.2 i get OutOfMemoryException.

however if i use WTK 2.5 i wont get the above exception. It works fine.

wht might be the problem ?

Thanks

Raghav. Naik

========================================================================
=== To unsubscribe, send email to listserv@java.sun.com and include in
the body of the message "signoff KVM-INTEREST". For general help, send
email to listserv@java.sun.com and include in the body of the message
"help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chris B

Clarification: Web application developmentI think it's a weird bug to do with the volume setting
----- Original Message -----
From: Raghavendra K. Naik
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Wednesday, January 10, 2007 5:27 AM
Subject: WTK 2.2 - Running media player

Hello ,
i tried playing a sample video file on WTK with version 2.2.
video file size is around 690 kb.

while running i got the following exception.
does anyone know the cause of this problem ?

Exception in thread "JMF thread: com.sun.media.codec.video.customjmpx.CustomJmpx
@1fc2fb ( 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.setValue(DirectAu
dioDevice.java:850)
at com.sun.media.renderer.audio.device.JavaSoundOutput.setGain(JavaSound
Output.java:157)
at com.sun.media.codec.video.customjmpx.CustomJmpx.setAudio(CustomJmpx.j
ava:1073)
at com.sun.media.codec.video.customjmpx.CustomJmpx.doPrefetch(CustomJmpx
.java:480)
at com.sun.media.PrefetchWorkThread.process(BasicController.java:1350)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1259
)

------------------------------------------------------------------------------
From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Raghavendra K. Naik
Sent: 09 January 2007 19:33
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Clarification: Web application development

hello
i am trying to read video file from system dir like this.
InputStream ins = getClass().getResourceAsStream(video);

if i make use of WTK with version 2.2 i get OutOfMemoryException.

however if i use WTK 2.5 i wont get the above exception. It works fine.

wht might be the problem ?

Thanks

Raghav. Naik

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help". =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]