Skip to content

Commit

Permalink
Version changes and setres command log
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSavci committed Jun 5, 2023
1 parent 75f4251 commit ac42131
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Working video player in minecraft

This plugin allows you to play videos/streams and paste images in Minecraft. It uses new thread to process videos/streams, so it can work with any fps you want assuming you have the processing power. I managed to make it work in 37fps with 20tps in a Ryzen 5 5600x (No overclocking).
This plugin allows you to play videos/streams and paste images in Minecraft. It uses new thread to process videos/streams, so it can work with any fps you want assuming you have the processing power. I managed to make it work in 60fps (I'm sure i can go further) with 20tps in a Ryzen 5 5600x (No overclocking).

## How to use

- /processvideo [url]
- /processimage [url]
- /processstream
- /setres [width] [height] [fps] _(Only FPS changes dynamically, so you can change it while the video is playing. Width and height changes only when you process a new video/image)_

### How to setup streaming

Expand Down
1 change: 1 addition & 0 deletions minecraft_video_player.iml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<configuration>
<autoDetectTypes>
<platformType>SPIGOT</platformType>
<platformType>MCP</platformType>
</autoDetectTypes>
</configuration>
</facet>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>dev.bdinc</groupId>
<artifactId>minecraft_video_player</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1</version>
<packaging>jar</packaging>

<name>Minecraft-Video-Player</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
return false;
}

sender.sendMessage("§aResolution set to " + width + "x" + height + " at " + fps + " FPS.");

Main.MAX_WIDTH = width;
Main.MAX_HEIGHT = height;
Main.MAX_FPS = fps;
Expand Down

0 comments on commit ac42131

Please sign in to comment.