Contact Us

If you have a general enquiry we would be delighted to hear from
you, simply fill out this form. Alternatively you can contact us at:

BFC Networks
55 Eastwood Road
Great Barr
Birmingham
B43 5RS

Tel: +44 (0) 121 288 5099

Email: info@bfcnetworks.com







Security Code





  • Sharepoint in Education


    Welcome to BFC Networks. The expert in SharePoint and Microsoft technologies for education.

    Sharepoint in Education

  • BFC Networks Blog


    Read the latest news from BFC Networks such as product releases,  case studies from customers and press releases.

    BFC Networks Blog

  • Alex Pearce Blog


    This is the personal blog for Alex Pearce, SharePoint MVP.  Blogging about SharePoint, Office365, live@edu and other technologies in education.

    Alex Pearce Blog

  • Services


    This is the Services Section.

    Services

  • Learning Gateway Conference


    BFC Networks are proud co-hosts of the Learning Gateway Conference.

    Learning Gateway Conference

  • Whitepapers


    Read the latest whitepapers from BFC Networks including SharePoint, SharePoint Learning Kit and Moodle.

    Whitepapers

  • BFC Networks Shop


    This is the Shop section.

    BFC Networks Shop

Microsoft Live@edu

Horizontal Line

Embed YouTube and other code into SharePoint 2010

SharePoint likes to keep code safe and when adding embedded code SharePoint takes a look and decides whether or not to it likes it.  And a good example of this is YouTube content.

SharePoint being safe

When we navigate to our SharePoint we select the Edit site button and then click on HTML and select Edit HTML Source.

image

I’ve selected a video from YouTube and have copied the embedded code.  I’m now going to paste this code into the window that opened up.

image

When we select OK to save this code and expect the YouTube video to load on our page we get this yellow warning message appear and then disappear very quickly and the YouTube video appears on our page.

image

When we click save to save the page the YouTube video disappears and when we go and check the HTML Source it is now completely empty.

Embedding code to SharePoint

There are many ways to resolve this issue and one of these includes stopping SharePoint from removing the embedded code but this isn’t realistic.

Instead we are going to save the content of the embedded code to a text file, upload it and then use a web part to pull this information viewing it as HTML and loading the content.

Open notepad and paste the embedded code into it.

SNAGHTML1352467

Save the file and upload the file into SharePoint.  A good place would be the SiteAssets library.

Add a content editor web part to your page and edit the web part.

image

In the properties box down the right hand side you will see 3 dots, click on these to open up a new windows.

image

Paste the URL of the text file we uploaded and click OK

SNAGHTML14a4002

When you now save your SharePoint page you will always have your embedded code.

image

This doesn’t necessarily have to be a YouTube video.  It could be flash code, html code or any other embeddable code.

Alex Pearce

Alex is a SharePoint MVP and works as a consultant for BFC Networks working with Microsoft technologies in the education sector. His passion is to share what he has learnt so it can benefit other educational establishments.

Website - Twitter - More Posts

Posted by: Alex Pearce in Alex Pearce,SharePoint 2010 on 16/06/2011 at 2:18 pm

10 Comments »

  1. [...] Last week I wrote a post about using the content editor web part and embedding external content into your site.  You can read the post here Embed YouTube and other code into SharePoint 2010. [...]

    Pingback by Embed into SharePoint: Part 1: SlideShare | BFC Networks — 05/07/2011 @ 5:40 am

  2. [...] can see how to do embed into SharePoint here. Alex PearceAlex is a SharePoint MVP and works as a consultant for BFC Networks working with [...]

    Pingback by Embed into SharePoint: Part 2: PlayStation Network | BFC Networks — 06/07/2011 @ 5:47 am

  3. Thanks for the article Alex. I was giving it a try and everyting was working except when I tried to save the page. Now the page is locked in edit mode except I cannot edit anything. Do you have any suggestions? Thanks

    Comment by Dan — 06/07/2011 @ 10:40 pm

  4. Hi, hard to tell unless you can give full description of everything on you pages ;-) .

    Try doing it through SharePoint Designer or try a different browser.

    Alex

    Comment by Alex Pearce — 06/07/2011 @ 10:47 pm

  5. So easy, and it worked perfectly. Great solution! Thanks!

    Comment by Dawn — 08/07/2011 @ 4:11 pm

  6. How to embed the youtube in SharePoint 2010 blogs? it is disappearing after publishing the post.

    Comment by dolly — 12/07/2011 @ 12:21 pm

  7. Dolly,
    Does the content editor web part get deleted too?

    Comment by Alex Pearce — 12/07/2011 @ 2:50 pm

  8. Hi,

    I’m pulling my hair out trying to embed videos into my blog (no webpart available). You mentioned “…There are many ways to resolve this issue and one of these includes stopping SharePoint from removing the embedded code but this isn’t realistic…”

    Please, please can you tell/link me to how to do this? (I’ll take it as read that this is something you should never ever do etc)

    Comment by James — 23/09/2011 @ 5:29 pm

  9. Hi Alex

    I just used these instructions to get a video on the SIMS Learning gateway. Worked first time. Superb and saved me a lot of time – now this is the way to go!

    Thanks

    Paul

    Comment by P Stevens — 31/10/2011 @ 1:18 pm

  10. [...] 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 [...]

    Pingback by Embedding YouTube Videos in a SharePoint Page With The Page Viewer Web Part | mylifeinaminute.com — 18/01/2012 @ 2:33 am

Leave a comment