# Bilibili 内嵌播放器：一个无需重建的 Discourse 主题组件，附设置指南并与现有插件进行比较

**URL:** https://meta.discourse.org/t/bilibili-inline-player-a-no-rebuild-discourse-theme-component-with-setup-guide-and-comparison-to-the-existing-plugin/398438
**Category:** Theme component
**Tags:** onebox
**Created:** [2026年三月14日 11:30 UTC](https://meta.discourse.org/t/bilibili-inline-player-a-no-rebuild-discourse-theme-component-with-setup-guide-and-comparison-to-the-existing-plugin/398438 "2026-03-14T11:30:36Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![hel\_Sinki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hel_sinki/32/525916_2.png) [@hel\_Sinki](https://meta.discourse.org/u/hel_Sinki)
#### Post date: [2026年三月14日 11:30 UTC](https://meta.discourse.org/t/bilibili-inline-player-a-no-rebuild-discourse-theme-component-with-setup-guide-and-comparison-to-the-existing-plugin/398438/1 "2026-03-14T11:30:36Z")

</div>

分享自用 Bilibili 內嵌播放主題組件：

[https://github.com/ieduer/discourse-bilibili-inline-player](https://github.com/ieduer/discourse-bilibili-inline-player)

和現有

> [@Discourse Bilibili Onebox](https://meta.discourse.org/t/discourse-bilibili-onebox/389149):
>
> information_sourceSummary Discourse Bilibili Onebox is a plugin that allows Discourse communities to directly play Bilibili videos and live streams.hammer_and_wrenchRepository Link [GitHub - scavin/discourse-bilibili-onebox: Discourse Bilibili Onebox](https://github.com/scavin/discourse-bilibili-onebox/)open_bookInstall Guide [How to install plugins in Discourse](https://meta.discourse.org/t/install-plugins-in-discourse/19157)Features Simply paste a Bilibili video or live stream URL on its own line in the editor to automatically embed and play it. Autoplay is disabled. DEMO [https://me…](https://meta.appinn.net/t/topic/55832)

插件路線不完全一樣。部署方式：  
• discourse-bilibili-onebox 是服務端插件，按插件方式安裝，需要 rebuild。需要更穩妥的推薦這個。  
• discourse-bilibili-inline-player 是主題組件，安裝更輕，無需 rebuild

用法：  
• 進入 Admin → Customize → Themes  
• 選擇 Install → From a git repository  
• 添加 [Discourse Bilibili Onebox](https://meta.discourse.org/t/discourse-bilibili-onebox/389149)  
• 掛到正在使用的主題上  
• 用一條單獨成行的 Bilibili 鏈接發帖測試

支持常見的 Bilibili 視頻鏈接和部分相關鏈接形式。對於純主題組件架構下不能穩定處理的情況，目前採用更保守的回退方式。

* * *

This project is meant for a different use case from the existing plugin approach. It is a remote theme component, so it can be installed from the Themes UI without editing app.yml or rebuilding the container.

Compared with discourse-bilibili-onebox, the main difference is deployment style:  
• discourse-bilibili-onebox: server plugin, plugin install path, rebuild required  
• discourse-bilibili-inline-player: theme component, lighter setup, no rebuild required

This component is intended for admins who want a simpler way to try Bilibili inline playback on Discourse.

Basic setup is straightforward:  
• go to Admin → Customize → Themes  
• choose Install → From a git repository  
• add the repository  
• attach it to your active theme  
• test with a standalone Bilibili link in a post

It supports common Bilibili video links and some related URL forms. For cases that cannot be handled reliably in a pure theme-component architecture, it falls back more conservatively.

I’m sharing it here in case this lighter theme-component approach is useful to others.

---

_[View the full topic](https://meta.discourse.org/t/bilibili-inline-player-a-no-rebuild-discourse-theme-component-with-setup-guide-and-comparison-to-the-existing-plugin/398438)._
