Thursday, January 7, 2010

How to embed video in SharePoint

Hi All,

Sometimes we require adding video content to our SharePoint site. There is a very simple way to achieve this functionality.

All we need is Content editor web part to be placed on the page. Source of video file can be from same web application or it can be external source as well or video sitting on some shared drive of your network which everybody has an access.

Go ahead and add content editor web part.

Add following line of code.

<Embed
src="{URL of video / Shared Path pointing to video file}"
width=350
height=350
align=center
autostart=false
loop=false
quality=high
allowFullScreen=true>
</Embed>

See the output below.



And that’s it. You are good to play your video file.

21 comments:

david.rohm said...

i'm having trouble getting this to work. i think its the details of the link address that are messing it up. Can you provide any more details about how to get the link to work...is there a way to browse to the content?

Unknown said...

Wow, that seems like a nice update for embedding a video!

-Steve Fernandes, NCST

Unknown said...

Wow, Jayesh...that is a nice one that you found out and shared with me...

Steve NCST

SharePoint Kings said...

david, not getting your problem can you please elaborate?

Anonymous said...

Doesn't seem to work in SharePoint 2010 - the code all gets stripped out.

-Ryan.

SharePoint Kings said...

Anonymous(Ryan)

we had not tried this on 2010 :(

Anonymous said...

I am entirely new to this but what do you mean by "Shared Path pointing to video file"?

Parth Patel said...

it means full file path from sharepoint

like
http://domain/site/web/lists/doclib/foldername/filename

Rydizzle said...

Content Editor Web Part! That's what I was looking for. This helped a bunch. Thank you

Akhlaq Khan said...

http://blog.vidizmo.com/2011/01/18/transform-sharepoint-into-corporate-video-communication-tool-2/

VIDIZMO for SharePoint allows organizations to provide a private platform for accessing interactive rich media presentations via their existing Microsoft Office SharePoint Server 2007 (MOSS) and Microsoft SharePoint 2010 setups. Installation of VIDIZMO for SharePoint combines the power of VIDIZMO’s interactive rich media presentations and Microsoft SharePoint by providing a unified experience to viewers using Single Sign On within familiar and intuitive SharePoint interface.

renea.pilcher@alere.com said...

I couldn't get this to work. I have the video on a file share on the sharepoint application server. I am using SharePoint 2007 SP2.
Here is what i put in the content Editor web part.

SharePoint Kings said...

renea, try to upload video in sharepoint then it should work.

if its on file share it might not work. the reason might be the client PC cannot request video file through browser.

if you have to use file system then try to copy video in a folder in layouts and refer it from your site _layouts/... then it could work

Anonymous said...

Hi, sorry for asking. where should i put this code? Thanks

SharePoint Kings said...

you have to put this code to embed video in SharePoint as mentioned in article

Anonymous said...

Awesome! u r indeed sharepoint king

Anonymous said...

Hey good approach..but it doesn't work in sharepoint 2010..can y please help...

SharePoint Kings said...

its just browser property/plug-in that we set so it should work in 2010 as well.

Suck My Blocks said...

PLACE the code in a content edito webpart to stop the code being stripped out - remove the chrome to make the video stand alone.

Colin said...

95% awesome, is there a way to change the layer? the Webpart edit menu disapears behind the video.

Colin said...

95% awesome, is there a way to change the layer order? The Webpart drop down menu is behind the video and you can't see the options

Sonali said...

Hi! this seems like an awesome post solution to post videos. However, I have a few questions for you.. would be amazing if you could help me understand them:
1. What video formats are accepted to embed? Is *.mp4 allowed?
2. How do I embed more than one video in a single page?
3. With the mentioned code from your article, I only get an empty space for the video to be placed but there is nothing else.. it is just plain.

Thank you in advance! :)




Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to sharepointkings@gmail.com with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to sharepointkings@gmail.com