A Spigot plugin that allows video playback on entities. GitHub Repository
Usage
It is recommended that you download platform-specific binaries from the Github Page to have a smaller plugin file.
Videos located in the plugins/videoviewer directory can be played.
The /screen command is used for all functions. Specifically, /screen create [width] [height] [entity type] creates a screen, and /screen play [filename] plays a video. Use /screen select to select the nearest screen for playback.
A good thing to point out is that you MUST know your video's dimensions in accordance with your screen size made in game, if they don't match, it wont work
^ Something should be stated in the wiki and on main page or you'll have people complaining
[22:20:06 ERROR]: [VideoViewer] Warning: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib [22:20:06 WARN]: [VideoViewer] Plugin VideoViewer v0.1 generated an exception while executing task 383 java.lang.UnsatisfiedLinkError: no jniavutil in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2423) ~[?:?] at java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[?:?] at java.lang.System.loadLibrary(System.java:1893) ~[?:?] at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1683) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at org.bytedeco.javacpp.Loader.load(Loader.java:1300) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at org.bytedeco.javacpp.Loader.load(Loader.java:1123) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at org.bytedeco.ffmpeg.global.avutil.<clinit>(avutil.java:14) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at io.github.mdy.videoviewer.playback.VideoDecoder.<clinit>(VideoDecoder.java:17) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at io.github.mdy.videoviewer.playback.PlaybackWorker.loadVideo(PlaybackWorker.java:40) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at io.github.mdy.videoviewer.commands.CommandScreen.lambda$playVideoCommand$1(CommandScreen.java:165) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:103) ~[patched_1.17.1.jar:git-Purpur-1397] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [patched_1.17.1.jar:git-Purpur-1397] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.17.1.jar:git-Purpur-1397] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?] at java.lang.Thread.run(Thread.java:831) [?:?] Caused by: java.lang.UnsatisfiedLinkError: no avutil in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2423) ~[?:?] at java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[?:?] at java.lang.System.loadLibrary(System.java:1893) ~[?:?] at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1683) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] at org.bytedeco.javacpp.Loader.load(Loader.java:1227) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?] ... 11 more
-
View User Profile
-
Send Message
Posted Jun 26, 2021A good thing to point out is that you MUST know your video's dimensions in accordance with your screen size made in game, if they don't match, it wont work
^ Something should be stated in the wiki and on main page or you'll have people complaining
-
View User Profile
-
Send Message
Posted Sep 29, 2021In reply to i_iz_skyy:
Hello, you know how to fix this? using 1.17.1
[22:20:06 ERROR]: [VideoViewer] Warning: Could not load Loader: java.lang.UnsatisfiedLinkError: no jnijavacpp in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
[22:20:06 WARN]: [VideoViewer] Plugin VideoViewer v0.1 generated an exception while executing task 383
java.lang.UnsatisfiedLinkError: no jniavutil in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2423) ~[?:?]
at java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[?:?]
at java.lang.System.loadLibrary(System.java:1893) ~[?:?]
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1683) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at org.bytedeco.javacpp.Loader.load(Loader.java:1300) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at org.bytedeco.javacpp.Loader.load(Loader.java:1123) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at org.bytedeco.ffmpeg.global.avutil.<clinit>(avutil.java:14) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at io.github.mdy.videoviewer.playback.VideoDecoder.<clinit>(VideoDecoder.java:17) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at io.github.mdy.videoviewer.playback.PlaybackWorker.loadVideo(PlaybackWorker.java:40) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at io.github.mdy.videoviewer.commands.CommandScreen.lambda$playVideoCommand$1(CommandScreen.java:165) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:103) ~[patched_1.17.1.jar:git-Purpur-1397]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [patched_1.17.1.jar:git-Purpur-1397]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [patched_1.17.1.jar:git-Purpur-1397]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]
Caused by: java.lang.UnsatisfiedLinkError: no avutil in java.library.path: /usr/lib/jvm/java-16-openjdk/lib/server:/usr/lib/jvm/java-16-openjdk/lib:/usr/lib/jvm/java-16-openjdk/../lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2423) ~[?:?]
at java.lang.Runtime.loadLibrary0(Runtime.java:808) ~[?:?]
at java.lang.System.loadLibrary(System.java:1893) ~[?:?]
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1683) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
at org.bytedeco.javacpp.Loader.load(Loader.java:1227) ~[videoviewer-0.1-SNAPSHOT-windows.jar:?]
... 11 more
-
View User Profile
-
Send Message
Posted Jan 16, 2023In reply to i_iz_skyy:
Do you know how to find out the dimensions of the video, I know its 1920 x 1080 but how do I translate that to the screen dimension?
-
View User Profile
-
Send Message
Posted Apr 25, 2021hi
my server is a roleplay server so i am making movie theatre pls tell how to increase max entities
-
View User Profile
-
Send Message
Posted Jun 26, 2021In reply to jithins_edugaming:
Check the config, its the only thing in the .yml
-
View User Profile
-
Send Message
Posted Mar 17, 2021Nice plugin, but it won't let me upload files to the folder location.
Therefore I haven't been able to play any videos and it doesn't work for me. :(
-
View User Profile
-
Send Message
Posted Jun 26, 2021In reply to palmmc:
This is something to do with your hosting, not the plugin. I would talk to your hosting provider.