In this article you will learn how to play video in restricted SharePoint environments.
A few months back, I came across a scenario where a user wanted to play video in SharePoint pages, but the environment restricts usage of video streaming. Solution In this case we can use HTML5 Video Tags. HTML5 Video HTML5 includes the video and audio tags that allow playing multimedia without any extra plugin requirement. Previous to HTML5, a Flash or Media Player was required to play video or audio files. Now all HTML5 compatible browsers support the video tag by incorporating necessary multimedia infrastructure within them. The following are the browsers & versions supporting HTML5 video and audio tags. Reference:
Your code in HTML file looks like below. Video File Now we need to create a video file. You can download the video file from this link. Choose the MP4 file, download, rename and upload to Site Assets library. Testing Now open the HTML file in a video supported browser. You will get the video played as shown below. Now open the HTML file in a non-supported browser. You will see the following error message. Note: You can also set a preview image for the video tag. This image will be displayed in the non-play state. Restricted Scenarios The video restricted scenarios can be:
References:
SharePoint 2010 Administration & Development