java-memidp-2.0

How to stream and play shoutcast radio server in j2me MIDP(java)?


i have tried String url = "38.101.195.5:9156" facing java.io.IOException: 11-Error in HTTP operation

code here

connection = (HttpConnection) Connector.open(url);

dataIn = connection.openDataInputStream();


Solution

  • If the device have support to the JSR 234 - Advanced Multimedia Supplements, then you can use your API: http://jcp.org/en/jsr/detail?id=234

    The package "javax.microedition.amms.control.tuner" Description

    This package contains Controls for various tuner settings. These Controls, if they are supported, can typically be fetched from a radio Player (for example a Player created by Manager.createPlayer("capture://radio");).

    See more in

    public interface TunerControl