Jump to content

How do we use HTML5 to bring in a video with audio BG full screen for a website ?


Plainman
 Share

Recommended Posts

Hi,

Im very new to HTML5, almost knowing nothing, so please tell me like you would to a 5 year old.

How do we bring in HTML5 video as a video background with sound. My MP4 video file is placed locally in the same folder as the .html webpage. This is the code im using.

<video width=1390 height=900 poster="MyPhoto.jpg" controls autoplay muted loop>
  <source src="MyVideo.mp4">
</video>

And the video loads and plays. But there's no sound, even if i remove the muted attribute keyword. Also funny thing is when i remove the muted attribute word. The video doesnt autoplay and stays paused and only hitting play starts it.

Any help will be greatly appreciated.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...