1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

HTML Video Embedding Not Working?

Discussion in 'General Programming Chat' started by jasgrey, Jun 14, 2014.

  1. jasgrey

    jasgrey Junior Member

    Joined:
    May 27, 2014
    Messages:
    166
    Likes Received:
    229
    I looked on w3 Schools and used their code to embed video on my page:

    Code:
    <video width="640" height="480" controls autoplay> 
    <source src="vids/free.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">
    Your browser does not support video
    </video>
    For some reason it does not work. The sound will work but no video ever comes up. It's just blank.

    What seems to be the problem?
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    950
    Likes Received:
    662
    Occupation:
    Web/Bot Developer
    Take a look here:
    Code:
    http://www.html5rocks.com/en/tutorials/video/basics/
    Also, do yourself a favour and stop using w3schools. :)