133134135136137138139140141142143
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(); } } } }
313314315316317318319320321322323
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(); }
309310311312313314315316317318319
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());
3637383940414243444546
public void controllerUpdate(ControllerEvent e) { if (e.getClass() == javax.media.EndOfMediaEvent.class){ synchronized(o){ o.notify(); } player.stop(); player.close(); } } });