Lia's Media Player
图片、GIF、视频和音乐——直接在 Minecraft 中体验。
Lia's Media Player 将聊天中分享的媒体链接转换为预览和浮动播放器。观看片段,在建造旁保留参考图片,或在游戏时播放列表。
Minecraft 1.21.1, 1.21.11 和 26.3 · Fabric & NeoForge · 仅客户端
安装到你自己客户端即可;服务器和其他玩家无需安装。在 Fabric 上,你还需要 Fabric API。
从聊天到你的屏幕
支持的链接在聊天中显示为紧凑的彩色标签:[picture]、[gif]、[youtube]、[audio] 等。
- 悬停图片标签以预览它。动态图片会在预览中播放。
- 点击以固定图片或启动视频/音频播放器。更多视频或音频链接会加入当前播放器的队列。
- Alt+点击视频可在紧凑音频栏中仅收听其声音。
- Shift+点击可打开独立播放器,而不是添加到现有队列。
你也可以通过可配置的快捷键播放剪贴板中的链接,或使用 /show 命令而不必在聊天中发布。
图片和 GIF
在光标旁预览图片,然后点击将其固定在屏幕上。固定的图片可以移动、调整大小、隐藏或关闭,并在正常游戏期间保持在 HUD 上可见。
- 支持 PNG、JPEG、GIF 和 BMP,并通过 ffmpeg 支持 WebP、动态 WebP、AVIF 和动态 PNG。
- Tenor 和 Giphy 的分享链接解析为 GIF 本身。
- 预览窗口适应屏幕大小,并缩小过大的图片。
- 拖动窗口角落可调整大小,滚轮悬停在固定图片上可缩放,或使用 Ctrl + 滚轮 缩放可调整大小的媒体窗口。
视频和直播
点击视频标签可在浮动窗口中观看,带有声音和播放控制。
| 来源 | 支持的链接 |
|---|---|
| YouTube | 视频、短链接、Shorts、直播链接和播放列表页面 |
| Twitch | 直播和 VOD(点播) |
| Vimeo | 视频页面和嵌入 |
| Streamable | 片段和嵌入 |
v.redd.it 链接和视频帖子页面 |
|
| 直接视频 | MP4, WEBM, MOV, MKV, M4V, AVI, FLV, OGV 和 TS |
| 流媒体 | HLS (.m3u8) 和 DASH (.mpd) 清单 |
播放器包含 播放/暂停、上一首/下一首、±10秒跳转、进度条、音量、静音、循环和随机播放。对于没有可跳转时间线的直播流,跳转控制不可用。
打开 队列面板 查看接下来要播放的内容。双击条目进行播放,拖动条目排序,或移除不再需要的内容。点击 YouTube 播放列表页面可将其中视频加入队列;Alt+点击则仅收听声音。
影院模式 填满屏幕并在空闲时隐藏控件。双击视频或按 Ctrl + F 进入或退出该模式;窗口恢复至之前的位置和大小。
无需大窗口的音乐
音频在紧凑栏中打开,提供播放、跳转、音量、队列、循环和随机播放控制。隐藏它后音乐继续播放。
- SoundCloud 曲目和歌单。
- Bandcamp 曲目和专辑。
- 直接音频: MP3, WAV, OGG/OGA, FLAC, M4A, AAC, OPUS, WEBA, WMA 和 AIFF/AIF。
- 视频作为音频: Alt+点击视频链接可在无画面的情况下收听。
围绕游戏排列你的媒体
打开聊天以与媒体窗口交互,或绑定 打开媒体控件 快捷键以获得专用屏幕,让世界在后台继续运行。
- 拖动、调整和缩放 窗口以适应屏幕。
- 吸附 窗口到屏幕边缘彼此对齐。拖动时按住 Shift 可自由定位。
- 隐藏 播放器以便继续收听;正在播放横幅会提示来自隐藏播放器的新曲目。
- 在游戏时将图片和视频保留在 HUD 上。
- 记住布局: 新窗口复用已保存的位置和大小设置,以及播放器的循环、随机和队列面板偏好。
- 复制窗口中的链接,或 Shift+点击复制按钮 以在支持的站点中包含播放时间。
- 在浏览器中打开原始链接,或从标题栏保存为收藏。
保存的歌单、历史记录和收藏
打开聊天上方的 歌单 界面,或分配其快捷键,以构建你自己的库。
- 创建和重命名歌单,添加链接,搜索曲目,拖动排序,并移除条目。
- 展开 YouTube 播放列表或 SoundCloud 歌单 为单个曲目。
- 按顺序或随机播放,可选循环。
- 从剪贴板导入链接,并将歌单导出为 M3U 文本格式以便分享。
- 在歌单条目和历史记录行旁查看缩略图,标题和缩略图在访问间缓存。
历史记录 屏幕使最近播放的媒体触手可及。按名称或 URL 搜索,再次播放某项,或将其添加到歌单。使用 心形图标 保存收藏:收藏项不受普通历史记录清除影响,也不计入其大小限制。
歌单、历史记录和收藏在不同会话之间保存。
个性化设置
从暂停菜单、Fabric 的 Mod Menu、NeoForge 的模组列表或快捷键打开 Media Player Settings。设置分组且可搜索,附带描述和单独的重置按钮。更改立即生效并自动保存。
- 四种主题: Dark(暗色)、High contrast(高对比度)、Minecraft 和 Light(亮色)。
- 视频质量: 选择最高 360p、480p、720p 或 1080p;默认为 720p。
- 窗口偏好: 固定图片、视频播放器和音频栏的默认位置及限制。
- 聊天偏好: 切换悬停预览,允许或阻止域名,忽略来自选定发送者的媒体链接。
- 性能: 调整图片内存和磁盘缓存限制,清除缓存,或让隐藏的 video 播放器在五秒后切换为仅声音模式。
- 工具: 查看状态,控制 yt-dlp 自动更新,或使用 Update the tools 手动刷新它们。
- 调试叠加层: 在故障排除时检查播放器分辨率、缓冲区、丢帧和渲染成本。
该重写版本会根据窗口大小调整视频解码,并在你设定的画质上限内工作,同时在较低分辨率下降低帧率。图片会解码为适合其显示大小的尺寸,而缓存的标题和缩略图则减少了重复下载。
控制键
在 选项 → 控制 → Lia's Media Player 中分配按键,用于播放、上一首/下一首、音量、静音、隐藏或关闭所有窗口、打开媒体控制面板、播放列表和设置,或者播放剪贴板链接。默认情况下所有按键均未绑定。
当聊天窗口或媒体控制面板屏幕打开时,这些快捷键同样适用于前置播放器:
| 快捷键 | 操作 |
|---|---|
| 空格键 | 播放 / 暂停 |
| ← / → | 后退 / 前进 5 秒 |
| Shift + ← / → | 后退 / 前进 30 秒 |
| Ctrl + ↑ / ↓ | 音量调高 / 调低 |
| Ctrl + M | 静音 / 取消静音 |
| Ctrl + L | 循环模式切换:关闭 → 队列 → 单曲 |
| Ctrl + S | 切换随机播放 |
| Ctrl + N / P | 下一首 / 上一首曲目 |
| Ctrl + F | 切换剧院模式 |
空格键和跳转快捷键仅在你未输入文字时控制播放。Ctrl 快捷键在正在输入消息时仍然可用。在 macOS 上,请使用 Cmd 代替 Ctrl。
聊天命令
/show <image|video|audio> <url> [newPlayer]
选择 image(图片)、video(视频)或 audio(音频),并粘贴链接。在末尾添加 true 以请求单独打开一个窗口;否则,视频和音频将加入现有播放器的队列。如果视频链接使用 audio 参数,则仅播放其声音。
入门与升级
播放功能依赖 ffmpeg 和 yt-dlp。模组会在首次启动时查找已安装的副本,或将其下载到自身的 liasmediaplayer/bin/ 文件夹中。默认启用 yt-dlp 自动更新。如果播放失败,播放器会显示解释说明和重试控件,并在适当时提供工具更新选项。
从 v2 版本迁移? 首次启动时会自动导入旧版设置、播放列表、历史记录和窗口偏好,并将原始文件保留为 *.v2.bak 备份。
对于插件开发者: 重写版本提供了 API 4,支持自定义媒体源、解析器、主题、窗口操作、快捷键、按键绑定和设置。现有的插件需要进行移植;部分较旧的 API 功能尚未提供。详情请参阅仓库中的 API 和移植指南。
Lia's Media Player 仅在您的客户端本地显示媒体。播放功能和您保存的媒体库均为本地私有;该模组不会与其他玩家同步观看进度。
Lia's Media Player
Pictures, GIFs, videos and music — right inside Minecraft.
Lia's Media Player turns media links shared in chat into previews and floating players. Watch a clip, keep a reference picture beside your build, or listen to a playlist while you play.
Minecraft 1.21.1, 1.21.11 and 26.3 · Fabric & NeoForge · Client-side only
Install it on your own client; the server and other players do not need it. On Fabric, you also need Fabric API.
From chat to your screen
Supported links become compact, coloured labels in chat: [picture], [gif], [youtube], [audio], and more.
- Hover an image label to preview it. Animated pictures play in the preview.
- Click to pin a picture or start a video or audio player. More video or audio links join the front player's queue.
- Alt-click a video to listen to its sound in a compact audio bar.
- Shift-click to open a separate player instead of adding to the existing queue.
You can also play a link from your clipboard with a configurable keybind, or use /show without posting it in chat.
Pictures and GIFs
Preview a picture beside your cursor, then click to keep it on screen. Pinned pictures can be moved, resized, hidden, or closed, and stay visible on your HUD during normal gameplay.
- PNG, JPEG, GIF and BMP, plus WebP, animated WebP, AVIF and animated PNG through ffmpeg.
- Tenor and Giphy share links resolve to the GIF itself.
- Previews fit within your screen and scale down large pictures.
- Drag a window's corner to resize it, scroll over a pinned picture to zoom, or use Ctrl + scroll to zoom resizable media windows.
Videos and streams
Click a video label to watch it in a floating window, with sound and playback controls.
| Source | Supported links |
|---|---|
| YouTube | Videos, short links, Shorts, live links and playlist pages |
| Twitch | Streams and VODs |
| Vimeo | Video pages and embeds |
| Streamable | Clips and embeds |
v.redd.it links and video post pages |
|
| Direct video | MP4, WEBM, MOV, MKV, M4V, AVI, FLV, OGV and TS |
| Streams | HLS (.m3u8) and DASH (.mpd) manifests |
The player includes play/pause, previous/next, ±10-second jumps, a seek bar, volume, mute, loop and shuffle. Seeking controls are unavailable for live streams without a seekable timeline.
Open the queue panel to see what is coming next. Double-click an entry to play it, drag entries into order, or remove the ones you no longer want. Click a YouTube playlist page to queue its videos; Alt-click to listen instead.
Theatre mode fills the screen and hides the controls when idle. Double-click the video or press Ctrl + F to enter or leave it; your window returns to its previous position and size.
Music without a big window
Audio opens in a compact bar with playback, seeking, volume, queue, loop and shuffle controls. Hide it and the music keeps playing.
- SoundCloud tracks and sets.
- Bandcamp tracks and albums.
- Direct audio: MP3, WAV, OGG/OGA, FLAC, M4A, AAC, OPUS, WEBA, WMA and AIFF/AIF.
- Video as audio: Alt-click a video link to listen without its picture.
Arrange your media around your game
Open chat to interact with your media windows, or bind Open the media controls for a dedicated screen that leaves the world running behind it.
- Drag, resize and zoom windows to suit your screen.
- Snap windows to the screen and each other. Hold Shift while dragging to position them freely.
- Hide a player to keep listening; a now-playing banner announces new tracks from hidden players.
- Keep pictures and videos on your HUD while you play.
- Remember your layout: new windows reuse the saved position and size for their kind, along with player loop, shuffle and queue-panel preferences.
- Copy a link from a window, or Shift-click the copy button to include the playback time on supported sites.
- Open the original in your browser or save it as a favourite from the title bar.
Saved playlists, history and favourites
Open Playlists above the chat, or assign its keybind, to build your own library.
- Create and rename playlists, add links, search tracks, drag them into order, and remove entries.
- Expand a YouTube playlist or SoundCloud set into individual tracks.
- Play in order or shuffled, with optional looping.
- Import links from your clipboard and copy playlists out as M3U text for sharing.
- See thumbnails beside playlist entries and history rows, with titles and thumbnails cached between visits.
The History screen keeps recently played media within reach. Search by name or URL, play something again, or add it to a playlist. Use the heart to keep a favourite: favourites survive clearing the ordinary history and are excluded from its size limit.
Playlists, history and favourites are saved between sessions.
Make it yours
Open Media Player Settings from the pause menu, Fabric's Mod Menu, NeoForge's mod list, or a keybind. Settings are grouped and searchable, with descriptions and individual reset buttons. Changes apply immediately and save automatically.
- Four themes: Dark, High contrast, Minecraft and Light.
- Video quality: choose a maximum of 360p, 480p, 720p or 1080p; the default is 720p.
- Window preferences: default placement and limits for pinned pictures, video players and audio bars.
- Chat preferences: toggle hover previews, allow or block domains, and ignore media links from selected senders.
- Performance: adjust picture memory and disk-cache limits, clear the cache, or let hidden video players switch to sound only after five seconds.
- Tools: see their status, control automatic yt-dlp updates, or use Update the tools to refresh them manually.
- Debug overlay: inspect player resolution, buffers, dropped frames and rendering costs when troubleshooting.
The rewrite adjusts video decoding to the window's size, within your quality limit, and reduces the frame rate at lower resolutions. Pictures are decoded to a size suited to how they are displayed, while cached titles and thumbnails reduce repeat downloads.
Controls
Assign keys in Options → Controls → Lia's Media Player for playback, previous/next, volume, mute, hiding or closing all windows, opening media controls, playlists and settings, or playing the clipboard link. All are unbound by default.
These shortcuts also work on the front player while chat or the media controls screen is open:
| Shortcut | Action |
|---|---|
| Space | Play / pause |
| ← / → | Seek back / forward 5 seconds |
| Shift + ← / → | Seek back / forward 30 seconds |
| Ctrl + ↑ / ↓ | Volume up / down |
| Ctrl + M | Mute / unmute |
| Ctrl + L | Cycle loop: off → queue → track |
| Ctrl + S | Toggle shuffle |
| Ctrl + N / P | Next / previous track |
| Ctrl + F | Toggle theatre mode |
Space and the seek shortcuts only control playback while you are not typing. Ctrl shortcuts remain available while writing a message. On macOS, use Cmd in place of Ctrl.
Chat command
/show <image|video|audio> <url> [newPlayer]
Choose image, video or audio and paste the link. Add true at the end to request a separate window; otherwise, videos and audio join an existing player's queue. Use audio with a video link to play only its sound.
Getting started and upgrading
Playback uses ffmpeg and yt-dlp. The mod finds installed copies or downloads them into its own liasmediaplayer/bin/ folder on first launch. Automatic yt-dlp updates are enabled by default. If playback fails, the player shows an explanation and retry controls, with a tool-update option when appropriate.
Coming from v2? The first launch imports your old settings, playlists, history and window preferences, and preserves the original files as *.v2.bak backups.
For addon developers: the rewrite provides API 4 for custom media sources, resolvers, themes, window actions, shortcuts, keybinds and settings. Existing addons need to be ported; some older API capabilities are not available yet. See the repository's API and porting guides for details.
Lia's Media Player displays media on your own client. Playback and your saved library are local to you; the mod does not synchronise viewing with other players.
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
下载 Lia's media Player
对模组进行了完全重写,提升了性能,但可能也引入了一些新的错误。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧