MediaException:无法为创建DataSorucecapture://audio 关于三星

MediaException:无法为创建DataSorucecapture://audio 关于三星,audio,java-me,samsung-mobile,mmapi,amr,Audio,Java Me,Samsung Mobile,Mmapi,Amr,我正在编写midlet,它可以在手机上捕获音频 System.getProperty("supports.audio.capture"); - returns true Manager.getSupportedContentTypes("capture"); - returns "audio/amr" 我的手机是三星SGH-G800,根据其规格,它支持JSR-135,但在这方面: Manager.createPlayer("capture://audio?encoding=audio/amr

我正在编写midlet,它可以在手机上捕获音频

System.getProperty("supports.audio.capture"); - returns true

Manager.getSupportedContentTypes("capture"); - returns "audio/amr"
我的手机是三星SGH-G800,根据其规格,它支持JSR-135,但在这方面:

Manager.createPlayer("capture://audio?encoding=audio/amr");
我得到一个例外:

MediaException: Cannot create DataSoruce for: capture://audio?encoding=audio/amr
我也试过了”capture://audio", "capture://audio_video“和”capture://audio?encoding=pcm". 没什么

你知道我为什么会有这个例外吗

crosspost:

试试这个

Player p = Manager.createPlayer("capture://audio?encoding=amr");