JMF Audio Test Questions

Testing the JMF media framework today, there are many problems from configuring JMF to running the test program. A few points to note so as not to forget

 

    错误1: java.lang.IllegalArgumentException: amount of data to read does not represent an integral number of frames

           It's because the sun jdk version is not installed

           Solution: install sun jdk, compile and run with sun jdk;

    错误2:javax.media.NoProcessorException: Error instantiating class: com.sun.media.protocol.javasound.DataSource

                javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.javasound.DataSource : java.io.IOException: Cannot open audio device for input.

           It is because of the error that the audio/vedio connection is not released

           Solution: Release the connection

                

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327039401&siteId=291194637