使用HTTPS URL或IP地址不会';在JavaZOOM JLayer中不工作

使用HTTPS URL或IP地址不会';在JavaZOOM JLayer中不工作,java,radio,jlayer,Java,Radio,Jlayer,我已使用JLayer实现此收音机: public class RadioImplement { public static void main(String[] args) { try { //works fine // playRadioStream ( "http://kantipur-stream.softnep.com:7248" ); //hitsfm works fine

我已使用JLayer实现此收音机:

public class RadioImplement {
    public static void main(String[] args) {
        try {
            //works fine
            //  playRadioStream ( "http://kantipur-stream.softnep.com:7248" );
            //hitsfm works fine
            // playRadioStream ( "http://webstream.hitsfm.com.np:5098/" );

            playRadioStream("http://108.166.174.131:8002/;stream.mp3"); //doesnt work
            //playRadioStream(" https://radio.itechnepal.com/kanchanjunghafm/stream"); doesn't work either says 403 forbidden
        } catch (IOException e) {
            e.printStackTrace();
        } catch (JavaLayerException e) {
            e.printStackTrace();
        }
    }

    private static void playRadioStream(String spec) throws IOException, JavaLayerException {
        // Connection
        URLConnection urlConnection = new URL(spec).openConnection();
        urlConnection.connect();

        // Playing
        Player player = new Player(urlConnection.getInputStream());
        player.play();
    }
}
IP地址URL和web流不工作。在web流中,它使用https://并表示禁止,IP地址给出了一些错误。我能做些什么来解决这个问题