Exemplo n.º 1
0
  public VideoTexture(String name, String file) {
    super(name);
    // getInputStreamFromFile(file);
    this.file = file;
    getInputStream(file);

    if (inputStream == null) {
      System.err.println("InputStream is empty!");
    } else {
      createShape();
      oggDecoder = new OggDecoder(inputStream);
      oggDecoder.start();
    }
  }