My Code the stream play in web browser not in app even I tried to play by 
method after that is print playing 
Issue 1) I couldn't set Icon even I set Icon it was now displayed
           2) There is no sound played , I tried in simulator and actual 
Android device No sound...  

////////////////////////////////////////
Media audio = MediaManager.createMedia("
http://station.voscast.com/5c4758698ef40/";, true);
      //  audio.prepare();
     
        Display.getInstance().callSerially(() -> {
            final MediaPlayer player = new MediaPlayer(audio);
            player.setAutoplay(true);
            
           try{ 
                     
    image1 =Image.createImage("/"+"Play.png");
      im =Image.createImage("/"+"Pouse.png");
    
           }catch(Exception ee){ee.printStackTrace();}
 image1=image1.scaled((400),(400));
           
            audio.setVolume(100);
            
            
             audio.play();
             
             
              audio.setVolume(100);
             
             
               System.out.println("Volume ? "+ audio.getVolume());
            
           System.out.println("Is playing ? "+ audio.isPlaying());
          
            player.setPlayIcon(image1.scaled((50),(50)));
            
              player.setPlayIcon(im.scaled((50),(50)));
            
            audio.setNativePlayerMode(false);
            radio.add(BorderLayout.CENTER, player);
            radio.revalidate();
///////////////////////

It Displaying just a progress bar , That's it nothing Else.. Please assist 
me it's very urgent...

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7f532432-b0ce-446c-8e58-8b3f294b259d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to