2014-01-23 29 views
0

已经有在https://stackoverflow.com/questions/3009908/how-do-i-get-a-sound-files-total-time-in-java更普遍的答案(JAVA)可惜在Java(GAE)中没有AudioSystem类的音频文件持续时间?

java.lang.NoClassDefFoundError: javax.sound.sampled.AudioSystem is a restricted class. Please see the Google App Engine developer's guide for more details. 

AudioSystem不上Google App Engine JRE Class White List,因此不能使用。任何其他方法?

我有(已上传)的音频文件坐在谷歌云存储(GCS),我可以将它们加载到ByteArrayInputStream,但不知何故,我需要将它们转换成AudioInputStream获得音频文件的持续时间(和保存期限在数据库)。

回答

相关问题