Set video on my website home page

Home Forums Web Development HTML5 Set video on my website home page

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Pavan 1 year, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5073

    Shalabh
    Participant

    I would like to run a product video on the entire page. Simply means it should be feel as the background of my home page. Can I do this?

    #5219

    Hello,

    Full-screen playback is not currently part of the HTML5 specification. However most of the popular browser support full-screen playback.

    I would suggest you to use gif version if video is small.

    #5221

    Pavan
    Moderator

    I think that you can show a video as background with the help of some css and styling such as:

    <body>
    <div style="background:red;height:100px;width:100px;position:absolute"">
    </div>
    <video width="100%" height="100%" style="position:absolute;
    z-index:-1" controls autoplay>
      <source src="movie.mp4" type="video/mp4">
    </video>
    </body>
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.