# Oneboxing with YouTube

**URL:** https://meta.discourse.org/t/oneboxing-with-youtube/25088
**Category:** Support
**Created:** [February 10, 2015, 7:35pm UTC](https://meta.discourse.org/t/oneboxing-with-youtube/25088 "2015-02-10T19:35:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BerryBlue](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BerryBlue](https://meta.discourse.org/u/BerryBlue)
#### Post date: [February 10, 2015, 7:35pm UTC](https://meta.discourse.org/t/oneboxing-with-youtube/25088/1 "2015-02-10T19:35:06Z")

</div>

I like the feature from discourse where if you enter a link from YouTube it will embed the video.

How do you customize properties like width, height and also disabling suggested videos when it finishes?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 10, 2015, 9:58pm UTC](https://meta.discourse.org/t/oneboxing-with-youtube/25088/2 "2015-02-10T21:58:19Z")

</div>

You wound need to write a new onebox for it or submit a PR to the onebox gem:

[https://github.com/discourse/onebox](https://github.com/discourse/onebox)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [December 21, 2016, 10:45pm UTC](https://meta.discourse.org/t/oneboxing-with-youtube/25088/3 "2016-12-21T22:45:15Z")

</div>

Solved here:

[https://meta.discourse.org/t/youtube-embed-size/20394/22?u=erlend\_sh](https://meta.discourse.org/t/youtube-embed-size/20394/22)
