Playing Videos in SharePoint using JWPlayer

Requirement:  To play a .MOV video file in SharePoint site.

Solution: Used the JWPlayer in SharePoint. Here are the detailed steps.

Step 1: 
Download the JWPlayer files from
Extract and open the jwplayer.js file, Search for  /jwplayer/player.swf and then replace this with the location where you are going to upload the files.
E.g. change it to:

Step 2:
Create a Document Library and upload the files along with your video file and modified preview.png.

jw player sharepoint

Step 3:
Create a HTM file with the name of “Jwplayer.htm”, paste the below code in it, change the File locations accordingly,  and then upload it to the document library you created earlier.

 <div id="mediaplayer">Loading video...</div>
 <script type="text/javascript" src=""></script>
 <script type="text/javascript">
   flashplayer: "",
   file: "",
   image: ""


Step 5: Now add a content editor web part, Edit the CEWP and point it to the HTM file created. Or Place this code:

<iframe name="Iframe" src="" scrolling="no" FRAMEBORDER="0" style="width:100%; border:0;  height:100%; overflow:hidden;">

See it in action!

jwplayer for sharepoint 2010

Look at this post for web based players:

we can use the EMBED tag as well!

<embed src="https:/" autoplay="true" loop="true" width="400"      height="200">

The Problem here is: you must have a browser plug-in installed to play the video ( Such as Quick time) also it will prompt for username/password when using Secured sites.

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

7 thoughts on “Playing Videos in SharePoint using JWPlayer

  • I’ve tried the above and can get the video to play directly from the jwplayer.htm file, but when embedding it either in a CEWP or a Page Viewer Web Part, it always tries to download jwplayer.htm instead of showing it. Am I doing something wrong?

    • Fowler, You have to either set the browser file handling or MIME type. Follow this article:


  • It only shows “Loading Video….”
    Any suggestion? Thanks

    • Try opening the HTML file you created in Browser first. If that HTML still shows “Loading Video” you may have to check any mistyped URLs, Javascript Link, Video Links.

  • I performed the steps mentioned above but my Content Editor says
    “Cannot retrieve the URL specified in the Content Link property. For more assistance, contact your site administrator.”
    any suggestions

    • Check these two possibilities:
      1. Resource Links(such as video, javascript) are mistyped – Try absolute URL.
      2. Permission issue.


Leave a Reply

Your email address will not be published. Required fields are marked *