How a video file can be embedded into a webpage? How to add a media player into HTML files?
Explanation
HTML embedding video in IE: Adding a media player to HTML page is simple using the embed tag. Mostly the embed element is used for embedding video files into the html pages. We can also use the DYNSRC attribute of the image element for adding media file. It works only in the Internet explorer. Example :
SRC: This attribute takes the video/movie to the source URL.
WIDTH and HEIGHT: It specifies the dimensions of the plug-ins.
AUTOPLAY: Its value can be either TRUE or false TRUE: Movie plays when page loads FALSE: Waits for the user to click the play button in window media player.
LOOP: Setting this to TRUE will play the media file continuously. A FALSE value will play the media only once.
CONTROLLER: Display controls. Can be set to TRUE or FALSE.
Adding video using Object Tag: Video files can also be inserted into the webpage or html pages using the standard object tag. Object element works in both IE and netscape browsers. For some types, like QuickTime document, adding the classid attribute will load the controls.