Tuesday, 14 May 2013

Embed Video in HTML


<object width="300" height="260">
        <param name="movie" value="Wildlife.wmv"></param>
        <param name="allowFullScreen" value="true"></param>
        <param name="allowscriptaccess" value="always"></param>
        <embed src="Wildlife.wmv" type="application/x-shockwave-flash" allowscriptaccess="always" autostart="false"
            allowfullscreen="true" width="425" height="344">
  </embed>
    </object>



html - embed attributes

To customize the functionality of the embedded media player, be sure to set any of the following attributes.
  • autostart - Controls the media's ability to start without prompting (values are "true" or "false")
  • hidden - Controls whether or not the play/stop/pause embedded object is hidden or not (values are "true" or "false"; hide your embeded media if you just want background noise)
  • loop - Controls the ability of the media to continuously play (values are "true" and "false")
  • playcount - Sets a playcount which means the media will repeat itself x number of times, instead of continuously as with the loop attribute above (a playcount of "2" will repeat the video twice)
  • volumn - Sets a numeric value for the loudness of your media (values are "0" through "100")

No comments:

Post a Comment