<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Emby on 華鳥風月</title>
    <link>https://blog.9-ch.com/tags/emby/</link>
    <description>Recent content in Emby on 華鳥風月</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Mon, 08 Aug 2022 18:44:25 +0800</lastBuildDate><atom:link href="https://blog.9-ch.com/tags/emby/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Emby 弹幕插件</title>
      <link>https://blog.9-ch.com/post/homelab-emby-danmaku/</link>
      <pubDate>Mon, 08 Aug 2022 18:44:25 +0800</pubDate>
      
      <guid>https://blog.9-ch.com/post/homelab-emby-danmaku/</guid>
      <description>Emby danmaku extension</description>
      <content:encoded><![CDATA[<p>
  <img loading="lazy" src="https://s1.ax1x.com/2022/08/09/vltmKs.png" alt="截图"  /></p>
<h3 id="项目主页">项目主页</h3>
<p><a href="https://github.com/RyoLee/emby-danmaku">RyoLee/emby-danmaku</a></p>
<h3 id="安装">安装</h3>
<p>任意一种方式安装即可</p>
<h4 id="浏览器方式推荐">浏览器方式(推荐)</h4>
<ol>
<li><a href="https://www.tampermonkey.net/">Tampermonkey</a></li>
<li><a href="https://cdn.jsdelivr.net/gh/RyoLee/emby-danmaku@gh-pages/ede.user.js">添加脚本</a></li>
</ol>
<h4 id="服务端方式">服务端方式</h4>
<p>路径 /system/dashboard-ui/index.html
在<code>&lt;/body&gt;</code>前添加如下标签</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-fallback" data-lang="fallback"><span class="line"><span class="cl">&lt;script src=&#34;https://cdn.jsdelivr.net/gh/RyoLee/emby-danmaku@gh-pages/ede.user.js&#34; defer&gt;&lt;/script&gt;
</span></span></code></pre></td></tr></table>
</div>
</div><h4 id="客户端方式">客户端方式</h4>
<p>类似服务端方式,解包后修改dashboard-ui/index.html再重新打包即可,iOS需要通过类似AltStore方式自签,请自行Google解决</p>
<h3 id="界面">界面</h3>
<p>插件运行后会在界面左下侧追加4个新按钮,分别为:</p>
<ul>
<li>弹幕开关</li>
<li>手动匹配</li>
<li>简繁转换</li>
<li>弹幕信息(触发右下角消息)</li>
</ul>
<h3 id="补充说明">补充说明</h3>
<p>弹幕来源为<a href="https://www.dandanplay.com/">弹弹play</a> 已开启弹幕聚合(A/B/C 站等弹幕融合)</p>
<p>因播放文件在emby中与上游弹弹play的名称可能存在不同(如&quot;彻夜之歌&quot;&lt;&ndash;&gt;&ldquo;夜曲&rdquo;),或因为存在多季/剧场版/OVA导致搜索匹配错误,首次播放时请检查当前弹幕信息是否正确匹配,若匹配错误可尝试手动匹配</p>
<p>匹配完成后对应关系会保存在浏览器本地存储中,后续播放(包括同季的其他集)会优先按照保存的匹配记录载入弹幕</p>
<h3 id="todo">TODO</h3>
<ul>
<li><input disabled="" type="checkbox"> 屏蔽规则导入</li>
<li><input checked="" disabled="" type="checkbox"> 简繁转换开关</li>
<li><input disabled="" type="checkbox"> 弹幕加载失败自动重试</li>
</ul>
<h3 id="参考项目">参考项目</h3>
<p><a href="https://github.com/susundingkai/emby-danmaku">susundingkai/emby-danmaku</a></p>
<p>主要差异:</p>
<ul>
<li>配置存储改为 localstorage</li>
<li>弹幕数据跨域问题通过 cloudflare 的 workers 处理绕过</li>
<li>通过播放对象的 item id 从 emby 的 api 获取数据,不再使用页面对象提取,更新导致出错概率大幅下降(顺便修好了播放下一集不能加载的问题)</li>
</ul>
<h3 id="license">License</h3>
<p><a href="https://github.com/RyoLee/emby-danmaku/blob/master/LICENSE">MIT License</a></p>
]]></content:encoded>
    </item>
    
  </channel>
</rss>
