· Emad Adel · SharePoint  · 9 min read

HTML5 Video and SharePoint 2010

Read Part 1: HTML5 and SharePoint 2010 With the help of Javascript programming, you can create your own controls to control the video. This means you can create your own video player, apply different styles to it,...

Read Part 1: HTML5 and SharePoint 2010 With the help of Javascript programming, you can create your own controls to control the video. This means you can create your own video player, apply different styles to it,...

Read Part 1: HTML5 and SharePoint 2010

HTML5 Video

With the help of Javascript programming, you can create your own controls to control the video. This means you can create your own video player, apply different styles to it, add the functionality you want your way. Controls attribute in the video tag allows you to use the default controls in the video player. If you remove this attribute, all you get is a video window (without any controls). You can add your own controls underneath the video window.

  1. Open notepad and add following code to it.

This is same code that you used in html5_demo.htm in part 1 .

  1. Save the file as vplayer.html. Now we are going to make changes to this file and add new code.

  2. Add following CSS code between the and tags.

This CSS code will be used to stylize the video player. You can write your own style sheet to add more style to the video player and the controls. You can also create different skins and apply them dynamically to the player. Discussing that is beyond the scope of this article. Our goal is to run HTML5 code in SharePoint 2010.

  1. Replace the following code with new code (shown below):

New Code

We have given an ID to the video tag. This ID is used in the Javascript code. We have added five buttons under the video tag. These buttons are as following:

  1. Play: To play the video
  2. Pause: To pause the video. Video resumes from the same place where it was stopped when played again.
  3. Stop: To stop the video. Video starts from the start when played again.
  4. Fast: To increase the speed of the video. Video returns to normal speed when Play button is clicked.
  5. Slow: To reduce the speed of the video. Video returns to normal speed when Play button is clicked.

Each button has a function attached to it. Function is called when click event is fired. The outer

(
is used to draw a solid border. The inner
(
) is used to indicate the current playback position. When video playback is under way, the
Back to Blog

Related Posts

View All Posts »
programing themes

programing themes

I wanted to share 6 awesome computer programming wallpapers for windows7 . All of these are prepared by me.

أطلقت مايكروسوفت ميزة Multi-Tenant Organization (MTO) لتمكين المؤسسات التي تدير أكثر من Tenant من التعاون السلس بين المستخدمين دون الحاجة إلى ترحيل البيانات أو دمج التينانتات.

أطلقت مايكروسوفت ميزة Multi-Tenant Organization (MTO) لتمكين المؤسسات التي تدير أكثر من Tenant من التعاون السلس بين المستخدمين دون الحاجة إلى ترحيل البيانات أو دمج التينانتات.

يمكنك عبر MTO: ✅ مشاركة الحالة (Presence) ✅ دردشة Teams بين التينانتات ✅ مشاركة معلومات التوفر (Free/Busy) في Outlook ✅ البحث عن المستخدمين والمحتوى بين التينانتات