```ytr:Emacs 的 YouTube 电台```
ytr: YouTube Radio for Emacs

原始链接: https://xenodium.com/ytr-youtube-radio-for-emacs

作者推出了一个新的实验性 Emacs 插件 **ytr**,用于在线播放 YouTube 音频。作者此前曾使用 `ready-player` 插件,但其基于文件和 `dired` 的架构并不适合流媒体播放。 `ytr` 被设计为一种轻量级的窗口小部件(widget)替代方案,允许用户输入 YouTube 频道链接,自动获取元数据并显示在子窗口(child frame)中。该插件利用 `mpv` 和 `yt-dlp` 实现核心功能,并包含受 Winamp 启发的视觉动画效果。 目前该项目处于初版阶段,主要在 macOS 上进行了测试。感兴趣的用户可在 GitHub 上下载试用。作者表示该项目仍在开发中,欢迎各方提供反馈意见。

Hacker News 社区近日围绕“ytr”展开了热议,这是一款允许用户直接在 Emacs 中播放 YouTube 音频的新工具。 早期反馈大多持肯定态度,用户称赞了使用 `mpv` 串流音频的性能效率,其内存占用远低于运行传统的浏览器标签页。开发者在照顾新生儿的同时开发出这款工具,也赢得了大家的钦佩。 然而,讨论中也指出了若干实际挑战。一些 Doom Emacs 用户反映,由于现有的 Evil 模式和 Which-key 等配置,键盘快捷键存在冲突。另一些人则对 UI 提出了疑问,特别是为何使用浮动窗口而非帧(frame);同时还有人担心近期 Google 对 `yt-dlp` 的限制可能会影响该工具的长期稳定性。总的来说,该项目被视为 Emacs 多功能性的又一有力证明,尽管一些用户更倾向于为特定任务使用专门的外部工具。
相关文章

原文
ytr: YouTube radio for Emacs

I've been a happy ready-player user for some time now. I consider the Emacs package fairly feature-complete, for my needs anyway. Well almost.

While I've successfully migrated most of my music-listening to offline playback, there are the odd times when I enjoy streaming YouTube audio. I've pondered extending ready-player for this use case, but its current approach is fairly file-driven. For starters, it uses dired as a core abstraction.

Before venturing on a major refactoring, without even knowing if an Emacs streaming flow would stick, I decided to build a new package. Coincidentally, this enables me to experiment with the package UX without being restricted by ready-player's needs. And so that's what I did in my new YouTube radio package ytr.

ytr really is fairly experimental. I'm currently driving its development purely on current needs. Let's see where it goes. It borrows lots from ready-player, but its UX presents itself more as a widget. I'm kinda liking the experience. There isn't much to it: you add a channel URL, and its content metadata is automatically pulled and presented as a child frame. I've also sprinkled in some eye candy (animations), reminiscing about the Winamp days. Beware, these sweets require running on Emacs GUI.

ytr is powered by mpv and yt-dlp, the real streaming workhorses doing the heavy lifting.

ytr is available on GitHub if you're keen to check it out. Keep in mind this is a brand new package and a first iteration, so it may need some improvements. If you give it a try, I'd love to hear how you got on. I've only tested on macOS so far.

Liking ytr? Would like to see it evolve? Consider sponsoring the effort.

powered by LMNO.lol

privacy policy · terms of service

联系我们 contact @ memedata.com