home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 135 / dpcs0599.iso / EXTRA / INTERNET / NETSCAPE / N32E301P.EXE / FILE / DATA.Z / PROGRAM / PLUGINS / NPAVI.ZIP / AviPlayer.class (.txt) < prev   
Encoding:
Java Class File  |  1996-08-05  |  1.4 KB  |  65 lines

  1. import netscape.plugin.Plugin;
  2.  
  3. public class AviPlayer extends Plugin {
  4.    private AviObserver observer;
  5.  
  6.    public AviObserver getObserver() {
  7.       return this.observer;
  8.    }
  9.  
  10.    public boolean advise(AviObserver var1, int var2) {
  11.       System.err.println("called advise " + var1 + " " + var2);
  12.       if (this.observer == null) {
  13.          this.observer = var1;
  14.          this.setTimeOut(var2);
  15.          return true;
  16.       } else {
  17.          return false;
  18.       }
  19.    }
  20.  
  21.    public native void setTimeOut(int var1);
  22.  
  23.    public native boolean play(boolean var1);
  24.  
  25.    public native boolean stop(boolean var1);
  26.  
  27.    public native boolean seek(boolean var1, int var2);
  28.  
  29.    public native boolean rewind(boolean var1);
  30.  
  31.    public native boolean forward(boolean var1);
  32.  
  33.    public native boolean frameForward(boolean var1);
  34.  
  35.    public native boolean frameBack(boolean var1);
  36.  
  37.    public boolean play() {
  38.       return this.play(true);
  39.    }
  40.  
  41.    public boolean stop() {
  42.       return this.stop(true);
  43.    }
  44.  
  45.    public boolean seek(int var1) {
  46.       return this.seek(true, var1);
  47.    }
  48.  
  49.    public boolean rewind() {
  50.       return this.rewind(true);
  51.    }
  52.  
  53.    public boolean forward() {
  54.       return this.forward(true);
  55.    }
  56.  
  57.    public boolean frameForward() {
  58.       return this.frameForward(true);
  59.    }
  60.  
  61.    public boolean frameBack() {
  62.       return this.frameBack(true);
  63.    }
  64. }
  65.