Skip to content

Commit

Permalink
removed unsupported webcam feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ClientCrash committed Sep 18, 2021
1 parent eba1fb4 commit c49f035
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
21 changes: 1 addition & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,31 +79,12 @@
</repositories>

<dependencies>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-openimaj</artifactId>
<version>0.3.12</version>
</dependency>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>0.3.12</version>
</dependency>
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-opencv</artifactId>
<version>0.3.12</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.17.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>4.7.0</version>
</dependency>

</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
case None:
break;
case Cam:
mv.setScale(MapView.Scale.FARTHEST);
mv.addRenderer(new RockWebcamRenderer());
sender.sendMessage("NOT SUPPORTED");
break;
/*mv.addRenderer(new RockWebcamRenderer());*/
case Frames:
mv.setScale(MapView.Scale.FARTHEST);
ArrayList<BufferedImage> imgl = getImagesWithEndingInDir(args[2],args[3]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.clientcrash.graphicsmc.graphicsmc.renderers;

import com.github.sarxos.webcam.Webcam;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.map.MapCanvas;
Expand All @@ -9,7 +8,9 @@

import java.awt.image.BufferedImage;

public class RockWebcamRenderer extends MapRenderer {
public class RockWebcamRenderer /*extends MapRenderer */{
/*
NOT SUPPORTED
public RockWebcamRenderer(){
cam = Webcam.getDefault();
if (cam != null) {
Expand All @@ -23,5 +24,5 @@ public RockWebcamRenderer(){
public void render(MapView map, MapCanvas canvas, Player player) {
BufferedImage bf = cam.getImage();
canvas.drawImage(0,0,bf);
}
}*/
}

0 comments on commit c49f035

Please sign in to comment.