www.webdeveloper.com
Results 1 to 3 of 3

Thread: HTML 5 video tag issues

  1. #1
    Join Date
    Apr 2009
    Posts
    33

    Exclamation HTML 5 video tag issues

    I created my html5 video tag below:

    <!DOCTYPE HTML>
    <html>
    <body>

    <video src="video_1.ogg" controls="controls">
    your browser does not support the video tag
    </video>

    </body>
    </html>

    It does not work once I upload it to my godaddy hosting account, only on my computer. I did the browser test and it does view HTML5 videos, just not ones I upload. I have the correct video .ogg file type, so what could be the problem? I tried linking a video and that did not work, something wrong with hosting account. The video is only .98MB

  2. #2
    Join Date
    Feb 2011
    Location
    Chuluota, Florida
    Posts
    144
    is the video directly in the same folder as the webpage that you have created with this html code? i.e www.PBSWebDesign.com/html5 there i have a seperate folder called html5 on my host. in that folder I have my index.html page and my movie.ogv file. here is how my code is on the page.

    Code:
    <html>
    <head>
    <title>
    HTML 5 Video Player
    </title>
    </head>
    <body>
    
    <h1 align="center">This is a test of the Html 5 video player</h1>
    
    <div>
        <video src="movie.ogv" controls="controls" autoplay="autoplay">
        your browser does not support the video tag
        </video>
    </div>
    
    </body>
    </html>
    So that is the code that I am using for my video that you can go and see.
    Stupid question to ask but did you maybe upload the video as .ogv and left the extension as .ogg? Anyways lemme know if any of this helps. Just make sure the video and html document are in the same folder.

    edit: I know I didnt declare a doctype. I just threw this together really quick and created it all to see if it helps the OP. Remember to always declare a doctype
    Last edited by PBSWebDesign; 02-10-2011 at 11:41 PM.

  3. #3
    Join Date
    Feb 2011
    Location
    Chuluota, Florida
    Posts
    144
    Also some hosts may not allow you to upload video files to be played? could be restricting what media is allowed to actually play on there servers. I use www.sixserve.com for my host and it is working fine for me.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles