public boolean change(int n) { int i = numbers.indexOf(n); if (i >= 0 && codecs.elementAt(i) != null) { codec.close(); number = n; codec = codecs.elementAt(i); return true; } return false; }
public void stop() { if (showing) { videoReceiver.stop(); codec.close(); audioTrack.stop(); audioTrack.release(); log.debug("VideoSurface.stop().endDrawer()"); endDrawer(); showing = false; } }