Friday, March 8, 2013

SharePoint 2013/2016: Adding YouTube Videos to Your Video Library

Video streaming within your SharePoint environment was made possible in SharePoint 2013. The video files can be uploaded to SharePoint itself, linked into SharePoint as explained here, or referenced by embed code as explained in this post. To add support for Videos in your site collection, see this post.


To add a video from YouTube to your SharePoint video library, first navigate to the video on You Tube. Under the video stream, click on Share and then Embed. Copy the embed code:



In SharePoint, navigate to your Video library (Assets Library) and click on New Document -> Video from the File top ribbon bar:




On the Videos page, select the "Provide code to embed a video from the web option", enter a name for the Video, and paste the embed code into the box provided:



Click OK. You are taken to the Video Properties page. Enter or modify any property settings and then click Save (either at bottom of the page or from the Edit top ribbon).

That's it! The YouTube video appears in your Video library as if it was actually in there:

As one of my readers pointed out (see comments), SharePoint now also supports a simple way of embedding YouTube videos into news feed posts by just pasting a YouTube URL; not the embed code for a video, but its page URL. Thanks David Bukhan!






28 comments:

  1. SharePoint 2013 also supports a simple way of embedding YouTube videos into newsfeed posts by just pasting a YouTube URL. Not the embed code for a video, but its page URL.

    My question is whether this feature can be extended to URLs to videos hosted by other sites, not just YoutTube. Which page headers are required? And more imprtantly it seems that even when all the OpenGraph headers are in place SP 2013 still does not embed videos from anywhere but YouTube. Does it filter by specific hostnames? Is there a way to configure SharePoint to accepts videos from other sites?

    See details about embedding YouTube videos here http://office.microsoft.com/en-us/sharepoint-server-help/add-features-to-a-newsfeed-post-HA102785751.aspx#_Toc328036827

    ReplyDelete
    Replies
    1. You need to configure external domains under the HTML Field Security within the Site Collection Administration (Site Settings) to allow embedding of videos from other sites. I'll probably write a post on this.

      Delete
    2. Here is the explanation and steps:

      http://stevemannspath.blogspot.com/2013/03/sharepoint-2013-allow-embedding-of.html

      Delete
  2. I wasn't aware of this feature. Thanks for posting the how to!

    I'm also curious about other video sources. I tried a skydrive video and it wasn't quite as good a YouTube video. Here's the video I tried:
    https://skydrive.live.com/redir?resid=43496171A70466B4!16454&authkey=!AFrAreHuTY0-Jxk
    One difference I noticed is that it doesn't play in the SharePoint site, but instead opens a new window with SkyDrive videos as opposed to YouTube.

    ReplyDelete
    Replies
    1. Could be the HTML Field Security as I explained in the reply above. I'll check the link out.

      Delete
    2. Your link there is to the page that contains the video, not the video itself. That is probably why a new window is opened.

      Delete
  3. Since, Microsoft's plan for SharePoint 2013 include a far more rapid update cycle, some of my favorite features could be very different in months to come.

    ReplyDelete
    Replies
    1. Once SharePoint Online catches up to on-premises, you may find that the updates may only be in SharePoint Online. Hopefully both but a quarterly service pack doesn't seem realistic.

      Delete
  4. Is there a service account running the videos or would i need to grant each user access to Youtube?

    ReplyDelete
    Replies
    1. I would think that the access to YouTube is happening client side and therefore using the current user. If you have YouTube blocked then you can easily test this.

      Delete
  5. Thanks for the useful info, however how I can change the embed code after creating the page ?

    ReplyDelete
    Replies
    1. Sorry I missed this comment previously. Not sure what you mean about creating a page. You can edit the Video list item to change the embed code.

      Delete
    2. Actually you cannot. When editing the page you can edit everything BUT the embed code, or maybe I'm missing something... Steve, can you share a screenshot of your edit page?

      Delete
    3. Did you find any answers for changing the embed code?

      Delete
    4. I have been super busy and don't really have time to investigate things like this.

      Delete
  6. Is it possible to have SP2013 access a private YouTube video? I don't see any real "login as" option for SP to pull the customer's private videos on YouTube.

    ReplyDelete
    Replies
    1. It is probably possible but not an easy thing to do. You would have to highjack the call out to YouTube and somehow send the current user's Google credentials. It may require claims and ADFS tweaking.

      Delete
  7. Does embedding a YouTube video in SharePoint 2013 cache the video on the server? Or does it stream it from YouTube every time someone clicks on the link? We're trying to work with an environment with limited bandwidth and are hoping this embedding option might help.

    ReplyDelete
    Replies
    1. I think it goes out each time but will cache on the client browser.

      Delete
    2. I think it goes out each time but will cache on the client browser.

      Delete
  8. Is there a way to change the embed code of a video I added on the Asset Library?

    ReplyDelete
    Replies
    1. I would think you could do this using the API to update the list item. Although technically it is a document set so it may be trickier.

      Delete
    2. I would think you could do this using the API to update the list item. Although technically it is a document set so it may be trickier.

      Delete
  9. Is there a way of locking down the embedded video in Sharepoint 2013 so it can't be saved/copied? It needs to be more than just 'unlisted' on YouTube, and we don't want viewers to enter a password so the 'private' YouTube setting won't work, either. Thanks

    ReplyDelete
    Replies
    1. There is a setting to not show the download menu but we have not found a way to prevent downloading videos if the user knows how to do it.

      Delete
  10. I added the "Video" content type to my document library. My Document library uses Content Organizer and a drop off library. When I create a new video with embedded link in the document library it is placed in the drop off library as a folder with the sub folders of "Additional Content" and "Preview Images". The video does not route at all, it just creates a folder with the title of the video and the 2 sub folders... why. Any ideas?

    ReplyDelete
    Replies
    1. does the drop off library have the Video content type too?

      Delete

Matched Content