Package javax.media

Examples of javax.media.Player.stop()


  for (int i = 0; i < tracks.getNumberOfTracks(); i++) {
      Track track = tracks.getTrack(i);
      if (track.isAssigned()) {
          Player player = track.getPlayer();
                if (player.getTargetState() == Controller.Started) {
        player.stop();
          }
      }
  }
    }
View Full Code Here


      Track track = tracks.getTrack(i);
      if (track.isAssigned()) {
          Player player = track.getPlayer();
          int state = player.getState();
          if (state == Controller.Started) {
        player.stop();
    }

          if (state > Controller.Realized) {
        player.deallocate();
    }
View Full Code Here

          int selIndex = inbound.getSelectionIndex();
          if (selIndex == -1)
            return;
          String item = inbound.getItem(selIndex);
          Player p = (Player)in.get(item);
          p.stop();
          updateInList();
          }
        });
    stopListening.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("XCDEVoice","icons/pause.png").createImage());
   
View Full Code Here

        public void controllerUpdate(ControllerEvent e) {
          if (e.getClass() == javax.media.EndOfMediaEvent.class){
            synchronized(o){
              o.notify();
            }       
            player.stop();
            player.close();
          }
        }             
      });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.