Embedding YouTube videos into confluence
Asked by Jackson Groves:

Is it possible to embed a YouTube video or other video hosted on a remote server into a Confluence wiki page? If so, how do you do it? Essentially, I would like to share the same video on multiple pages without having to attach the video to each individual page.


Answers:
author: BenjiI
body: Hi Jackson,

This can be done with the *Widget Connector Macro*. To add a video do the following:

1) Create a page to which you want to add the video

2) In the toolbar click the *plus-button* and then choose *Other Macros*

3) Search for *Widget Connector*

4) Paste the URL, define the size en click *Insert*

Now the video should appear in your page (you can test with preview).

Hope this helps?!

comments: author: BenjiI
body: In the latest version of confluence you can simply paste youtube url in the editor and Confluence will create a widget connector macro for you.


author: Mustafa Abusalah
body: Can I do this here in Confluence Answers?


author: Lena Bosheh
body: This doesn't work in Confluence 5.2. At all.


author: Mustafa Abusalah
body: You need to upgrade


author: AMC Web Team
body: Is there an update to this that allows for a playlist-enabled URL to be processed?

```
https://www.youtube.com/embed/videoseries?list=PLX0NnqKqW_-ceiZCNrzbm03-YBLpt4T7h
```

Adding this to the existing Widget Connector generates a widget error.

Running Confluence DataCenter 6.0.4


author: fernando_tella
body: I'm using Confluence Cloud. How can the video be centered in the widget? In my tests, it only shows aligned to the left side.


author: fernando_tella
body: Well, I managed to do something similar (not exactly what I wanted, but close) by typing 100% in the width field and adjusting the size with the height value; that way, the thumbnail of the video will be the full width of the page, but when clicking play, it will be centered in the youtube widget and of the chosen size.


author: weweave UG
body: [@fernando_tella](/t5/user/viewprofilepage/user-id/4037599): You can check out our App "YouTube for Confluence" from the Atlassian marketplace (see <https://marketplace.atlassian.com/apps/1221789/>). We recently added an option to set the alignment of the video content (to either left, center or right). If you set this option to "center" and define a width in the macro options you should get the result you are looking for if we get you question right.


author: Nar Kumar C. - Narva Software
body: If you are using Confluence Cloud, you can use our add-on: [**HTML Macro for Confluence**](https://marketplace.atlassian.com/apps/1221472/html-macro-for-confluence?hosting=cloud&tab=overview)

Simply copy the embed code from Youtube (or any other service like Vimeo), save it into HTML/Iframe macro body and your videos/contents will be embedded in the page. Let us know if you have any issue.

Best,

Kumar

comments: author: felix.weber
body: Good idea but usually iframes got locked quite fast by the site you are referencing to

most of our iframes didn?t work after few days


author: weweave UG
body: For Confluence cloud, you can check out our app "YouTube for Confluence" from the Atlassian marketplace (see <https://marketplace.atlassian.com/apps/1221789/>).