HTML5 video tag Part 2
HTML5 video tag - Part 2 :
To embed a video in the web page, we can use video tag or embed tag.
We can put embed tag as a fallback content.
The browsers that support video tag, will play the source video provided in video tag, and the browsers that don't support video tag will play the source video provided in fallback embed tag.
Videos that are embedded by using embed tag are played by installed plugin players.
Whereas videos that are embedded by using video tag are played directly by browsers.
If we embed a video by using embed tag, then user needs to depend on the plugin, if player plugin is not installed or no enabled then video do not get play. User must and should install or enable respective plugin player to play the video.
If embed a video by using video tag user need not to depend on any plugins because browsers play videos.
width: sets the width of the video
height: sets the height of the video
loop : loops the video to get play repeatedly
poster: sets the poster or thumbnail to video
preload: none, auto, metadata