VideoCmd
通过指令为所有玩家同时全屏播放 MP4 视频。适用于出生点开场动画、地图剧情过场、活动视频展示、游戏内活动宣传等场景。
简要描述(用于 Modrinth 卡片)
通过简单的 /video start 和 /video stop 命令,一次性为所有玩家全屏播放 MP4 视频。
功能特性
- 全屏覆盖层:在玩家界面之上以视频形式显示(两侧保留黑边;若视频宽高比与屏幕不匹配,图像不会被拉伸变形)
- 一键启动:通过单条指令让服务器上的所有玩家同时播放视频
- 可自定义播放时长:即使源文件更长,也可指定在 N 秒后停止播放;若不指定,则完整播放一遍后自动停止,不会循环
- 可自定义音量
- 强制停止:使用
/video stop 命令可为所有玩家强制停止播放
- 路径自动补全:在聊天栏中使用 Tab 键可直接补全视频文件路径,插入
video 文件夹中的文件列表
- 格式检查:仅接受
.mp4 格式,其他格式将被拒绝并返回明确的错误提示
- 支持子文件夹:例如可引用
trailers/teaser.mp4
指令:
/video start <path> [time] [volume]
/video stop
<path> — 视频文件夹内文件的路径,例如 intro.mp4 或 trailers/teaser.mp4
[time] — 视频播放的秒数,到达该时间后会自动停止(可选,默认值:播放至文件结束)
[volume] — 0–100(可选,默认值为 100)
/video stop — 立即停止并为所有玩家关闭视频
玩家还可以使用 End 键在本地关闭视频。
视频放置位置
对于玩家:.minecraft/video/(首次启动带有该模组的游戏时,文件夹会自动创建)
对于服务器:<server folder>/video/
要求
Forge 1.19.2,构建版本 43.3.0 或更高版本(来自 43.x 分支)
FancyVideo-API (forge, 1.19.2) — 一个强制性的客户端依赖项;正是它通过 VLCJ 和内置的 VLC 来解码 mp4。如果没有它,视频将无法显示。服务器端不需要此依赖。
视频格式 — 仅支持 .mp4
技术说明
原生解码通过 FancyVideo-API 在 Windows 上开箱即用;在其他操作系统上,可能需要额外的配置 — 请参阅 FancyVideo-API 页面。
视频以文件的原始分辨率渲染;模组不会执行任何额外的压缩/降采样处理。
视频解码 — FancyVideo-API,作者:Nick1st(VLCJ + VLC)
许可证
MIT
VideoCmd
Displays an mp4 video full-screen for all players simultaneously — via a command. Suitable for
intros at spawn, cutscenes on maps, videos at events, advertising in-game events, etc.
Brief description (for a card on Modrinth)
Plays an mp4 video full-screen for all players at once, via simple commands /video start and /video stop.
What it can do
Full-screen overlay with video over the player’s interface (black bars on the sides; if the video’s aspect ratio doesn’t match the screen, the image isn’t distorted)
Launching the video simultaneously for all players on the server with a single command
Customizable playback duration — the video can be stopped after N seconds, even if the file itself is longer; you can also leave it unspecified — in that case, it will play through to the end once and then stop without looping
Customizable volume
Forced stop for all players with the /video stop command
Auto‑completion of video file paths directly in the chat (Tab) — inserts a list of files from the video folder.
Format check — accepts only .mp4, nothing else. command will reject with a clear error.
Support for subfolders inside the video folder (for example, trailers/teaser.mp4)
Commands:
/video start <path> [time] [volume]
/video stop
<path> — the path to the file inside the video folder, for example, intro.mp4 or trailers/teaser.mp4
[time] — how many seconds to play the video, then it will stop on its own (optional, by default — play until the end of the file)
[volume] — 0–100 (optional, default is 100)
/video stop — immediately stops and closes the video for all players
The player can also close the video locally using the End key.
Where to place the video
For players: .minecraft/video/ (the folder is created automatically the first time the game is launched with the mod)
To the server: <server folder>/video/
Requirements
Forge 1.19.2, build version 43.3.0 or newer from the 43.x branch
FancyVideo-API (forge,
1.19.2) — a mandatory client dependency; it is this that decodes mp4 via VLCJ and the built‑in VLC. Without it, the video will not be displayed. Not required on the server.
Video format — only .mp4
Technical notes
Native decoding via FancyVideo-API works out of the box on Windows; on other OSes, additional configuration may be required — see the FancyVideo-API page.
The video is rendered in the file’s native resolution; no additional compression/downscaling is performed by the mod.
Video decoding — FancyVideo-API by author
Nick1st (VLCJ + VLC)
License
MIT
评论 0
登录后参与评分
还没有评论,来抢沙发吧