A simple video player mod! Supports preloading, fade-in/fade-out, 60 FPS, and clear image quality!
After installing the mod and launching the game, an atvideo folder will be generated at the same level as the mods folder. Just put .mp4 video files into the atvideo folder!
Commands:
/atvideo @a filename.mp4 volume frame rate fade-in time fade-out time transparent background auto-close after playback
/atvideo @s stop
/atvideo @a preload filename.mp4 60hz
Explanation:
You can use /atvideo @s filename.mp4 100 60hz 0 0 false true to play a video fullscreen in-game.
The Esc key can force-close the currently playing video (the same as /atvideo @a stop).
/atvideo @a preload filename.mp4 60hz is useful for some videos that are too large to play immediately. Use the preload command to load the video you want to play in advance, and then it can play immediately.
Note: If you want to play a 60 FPS video (/atvideo @s filename.mp4 100 60hz 0 0 false true), the preload command must be 60hz. If it is a 30 FPS video (/atvideo @s filename.mp4 100 30hz 0 0 false true), the preload command must be /atvideo @a preload filename.mp4 30hz. Otherwise, preloading will not work.