Jump to content

Recommended Posts

Posted

Video on the Web

 

Until now, there has not been a standard for showing a video/movie on a web page.

 

Today, most videos are shown through a plug-in (like flash). However, different browsers may have different plug-ins.

 

HTML5 defines a new element which specifies a standard way to embed a video/movie on a web page: the <video> element.

Browser Support

 

 

Internet Explorer 9, Firefox, Opera, Chrome, and Safari support the <video> element.

 

Note: Internet Explorer 8 and earlier versions, do not support the <video> element.

HTML5 Video - How It Works

 

To show a video in HTML5, this is all you need:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video> 

 

The control attribute adds video controls, like play, pause, and volume.

 

It is also a good idea to always include width and height attributes. If height and width are set, the space required for the video is reserved when the page is loaded. However, without these attributes, the browser does not know the size of the video, and cannot reserve the appropriate space to it. The effect will be that the page layout will change during loading (while the video loads).

 

You should also insert text content between the <video> and </video> tags for browsers that do not support the <video> element.

 

The <video> element allows multiple <source> elements. <source> elements can link to different video files. The browser will use the first recognized format.

Video Formats and Browser Support

 

Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:

Browser 	MP4 	WebM 	Ogg
Internet Explorer 9 	YES 	NO 	NO
Firefox 4.0 	NO 	YES 	YES
Google Chrome 6 	YES 	YES 	YES
Apple Safari 5 	YES 	NO 	NO
Opera 10.6 	NO 	YES 	YES

 

    MP4 = MPEG 4 files with H264 video codec and AAC audio codec

    WebM = WebM files with VP8 video codec and Vorbis audio codec

    Ogg = Ogg files with Theora video codec and Vorbis audio codec

 

 

Tag Description

<video> 	Defines a video or movie
<source> 	Defines multiple media resources for media elements, such as <video> and <audio>
<track> 	Defines text tracks in mediaplayers

 

Credits Olympus,Internet,ME.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • NEW HIDDENSTASH KEY SYSTEM INTRODUCED TO THE SITE   **Earn While You Spend - Introducing HS Cashback!**   Every purchase on our site now rewards you with **HS Keys cashback**   EVERY ONE WHO REGISTERS IN SITE UNTILL 15TH OF MAY GETS 2000 HS KEYS IN HES BALANE   Here's how it works:       **1 USD = 1000 HS Keys**   **Get 3% cashback** on every purchase   **Use your HS Keys to **save on your next order**   ---   ### ⚡ Why this is awesome   * Every order gives you value back   * Stack it with promos & HS usage   * Turn your spending into future discounts   ---   ### Example   Spend **$10** → Get **300 HS Keys** back   Spend **$50** → Get **1500 HS Keys** back   ---   ### Smart system (built for fairness)   * Cashback is rounded to keep things balanced   * Prevents abuse from tiny orders   * Rewards real buyers   ---   ### Start earning now   Every purchase = progress toward your next discount   Shop now and build your HS balance!   #cashback #gamingdeals #d2r #rewards #loyalty   Stay safe out there, heroes - and happy hunting! www.d2rhiddenstash.com     We just launched our new Affiliate Program — and it’s the easiest way to earn HS Keys.   Invite your friends using your personal link.   Example: If your friend spends $10 → you get 300 HS Keys No limits. No effort. Just share your link.   Get your referral link here: www.d2rhiddenstash.com/profile     Start earning today
    • https://jumpshare.com/share/L45ApA5PVrGN2O5Ua5pQ   Skill synchronization with the server: Launching and synchronizing animations, launching and synchronizing effects. All of this is tied to the server's timing  
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..