# 使用 Discourse 创建视频库以在帖子中嵌入视频？

**URL:** https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012
**Category:** Support
**Created:** [2019年一月31日 11:03 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012 "2019-01-31T11:03:58Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Ian\_Walker](https://avatars.discourse-cdn.com/v4/letter/i/b5e925/32.png) [@Ian\_Walker](https://meta.discourse.org/u/Ian_Walker)
#### Post date: [2019年一月31日 11:03 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/1 "2019-01-31T11:03:58Z")

</div>

Hello.

Is it possible to use OneBox to create some sort of video library where we can upload video files that can later be embedded in forum threads? I’m just seeing if this can be achieved internally through using Discourse instead of just embedding videos from YouTube instead.

Many thanks.  
Ian

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年一月31日 11:40 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/2 "2019-01-31T11:40:48Z")

</div>

Yes, it should work fine, but… The problem is file size. You can increase the default somewhat, but there are constraints that limit to only a few minutes of video. You’ll really need some external file sharing service.

---

<div class="post-metadata">

### Author: ![bartv](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bartv/32/130052_2.png) [@bartv](https://meta.discourse.org/u/bartv)
#### Post date: [2019年一月31日 12:06 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/3 "2019-01-31T12:06:33Z")

</div>

Also note that Discourse will offer simple file-based video playback, not proper streaming with features like multi-bitrate support etc. Depending on your needs, it might not give the best user experience.

---

<div class="post-metadata">

### Author: ![Ian\_Walker](https://avatars.discourse-cdn.com/v4/letter/i/b5e925/32.png) [@Ian\_Walker](https://meta.discourse.org/u/Ian_Walker)
#### Post date: [2019年一月31日 12:06 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/4 "2019-01-31T12:06:40Z")

</div>

Hello.

Thanks for replying. How would I use OneBox to upload all of these video for use then in Discourse?

Thanks.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年一月31日 13:52 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/5 "2019-01-31T13:52:28Z")

</div>

Just upload them and they work. Check on [try.discourse.org](http://try.discourse.org) if you don’t have your own site.

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2019年二月8日 15:42 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/6 "2019-02-08T15:42:10Z")

</div>

Interesting, when I upload videos they appear as an attachment with a download link, rather than an embedded video player.

If I edit the post afterwards and dismantle the attachment download link, leaving just the URL to the .mp4 video then an embedded player magically appears.

Am I doing something wrong?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年二月9日 10:32 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/7 "2019-02-09T10:32:04Z")

</div>

Hmm. That’s not what I remember, but it was over a year ago when I tried it.

Perhaps you need a theme component to handle it now?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年二月9日 12:17 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/8 "2019-02-09T12:17:22Z")

</div>

No, it works fine, as [you can see here](https://meta.discourse.org/t/video-player-for-uploads/104764/8). This implies there’s a problem with the install on their end.

Unless you can repro a problem on try, but I’m not seeing one. Here’s a screenshot of me sending a PM to myself with that sample video clip on [try.discourse.org](http://try.discourse.org)

 ![image](https://global.discourse-cdn.com/meta/original/3X/7/9/7977ca18b452e1749ae8683cb04c96ee6917b503.jpeg)

Raw post source is

`https://discourse-cdn.freetls.fastly.net/try/uploads/default/original/1X/17735b4721faa7d59e1fd8a2300135a3f04c9ea6.mp4`

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2022年二月25日 13:30 UTC](https://meta.discourse.org/t/using-discourse-to-create-a-video-library-to-embed-videos-in-posts/108012/9 "2022-02-25T13:30:22Z")

</div>


