Html – video codes
Video files, involving YouTube videos, are added into an HTML document via utilizing the <embed> tag. The src characteristic defined which video file to be added into the page. The <embed> tag does not need a closing tag. A brief explanation of the <embed> tag with a global URL is presented here. Be careful that its controls, involving Play, Stop, Pause, and volume, are currently considered.
You may begin and stop your movie files via both pressing the buttons at the bottom of the object or single-clicking on the object itself. Double-clicking your mouse, it can be restarted.
Html – video media types
Flash (.swf) and MOV (.mov) file types are also supported by the <embed> tag.
- .swf – Macromedia’s Flash file types – great compression, appropriate for the web!
- .wmv – Microsoft’s Window’s Media Video file types – appropriate quality, fluctuating compression.
- .mov – Apple’s Quick Time Movie format – appropriate quality, fluctuating compression.
- .mpeg – the appoved standard for web movie files produced by the Moving Pictures Expert Group – appropriate quality, fluctuating compression.
Some of the most common “internet-ready” video files are summarized via the list above. As the high compression rate of these file types decreases file size and accelerate the download/buffering periods for your page visitors Macromedia’s .swf and .mpeg formats may be the most appropriate options for use with the web.
You may also just locate the URL of your media files into the href characteristic of an anchor tag, similar to the notion of “thumbnailing” images.
Html – YouTube videos
YouTube videos can be involved in HTML documents, and Google presents the code to do so right on the same page as the video itself!
The code presented by YouTube includes a small handful of properties that help personalize the added video object, and if you contemplate the code, you will be able to recognize the <embed> feature and see the src characteristic pointing to the URL of the media file.
YouTube Video Code:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/opVb89Cmrtkamp;hl=enamp;fs=1">
</param><param name="allowFullScreen" value="true">
</param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/opVb89Cmrtk&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
Html – embed characteristics
Be sure to arrange any of the following characteristics in order to personalize the usefulness of the added media player.
- autostart – Checks the media’s capability to begin without fostering (values are “true” or “false”)
- hidden – Checks if the play/stop/pause added object is concealed or not (values are “true” or “false”; conceal your added media if you only want background noise)
- loop – Checks the capability of the media to play without stopping (values are “true” and “false”)
- playcount – Arranges a playcount which means the media will reiterate itself x number of times, instead of continuously as with the loop characteristic above (a playcount of “2” will repeat the video twice)
- volumn – Arranges a numeric value for the loudness of your media (values are “0” through “100”)