There are a few different ways to present YouTube videos to users in a SharePoint 2010 portal. The trusty Silverlight Media Player web part (if you want to rip the media down locally) or a content editor linked to an external file are both viable options. But for the common page editor/content owner, those aren’t the most user friendly options available.
Enter the Page Viewer web part (aka the iFrame web part). How does this technological wonder better our lives? Watch and learn.
- Find a YouTube Video. Ricky Gervais’s opening monologue from the 2012 Golden Globes should do nicely. Once you’ve located your target video, click Share, followed by Embed. Leave the window/tab open, we’ll come back to it in a moment.
. - Go to the page in your SharePoint site where you want to add the video (I’m using a publishing page).

- Add a Page Viewer Web Part (located in the Media and Content category).

- Open the tool pane. We’ll need to fill in the values for the Link, Height, and Width fields.

- Back to our YouTube window/tab, select the embed options you would like to use (480×360 video in my case).

- Locate the embed HTML code and copy the URL. It should look like the following:
<iframe width="480" height="360" src="http://www.youtube.com/embed/h_OnK0SrtC8" frameborder="0" allowfullscreen></iframe>
- Back in the window/tab containing your SharePoint page, paste the url to the YouTube video in the Link field in your web part. Adjust the Height and Width fields accordingly. Save your web part options. Your web part should render with the video inline.

- Publish/Save/Stop Editing your page and bask in the glory of your embedded YouTube video (without the use of a content editor or any external text file).








0 Comments.