1 Reply Latest reply on Nov 16, 2010 11:58 PM by cartoon_20

    MediaException: Cannot create DataSoruce for capture://audio on Samsung

    cartoon_20
      I'm writting midlet that captures audio on mobile.

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

      Manager.getSupportedContentTypes("capture"); - returns "audio/amr"

      My mobile is Samsung SGH-G800 and according to its spec supports JSR-135, but on that:

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

      I get this exception:

      MediaException: Cannot create DataSoruce for: capture://audio?encoding=audio/amr

      I tried also "capture://audio", "capture://audio_video" and "capture://audio?encoding=pcm". Nothing.

      Any ideas why I get this exception?

      Edited by: 811589 on 2010-11-16 15:52

      Solved. I used media locator like this : "capture://audio/amr" unusual but works :) but now setRecordLimit(); :( Another problem to resolve.