Results 1 to 3 of 3

Thread: with HTML5

  1. #1
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default with HTML5

    Hi,

    I've found out that we have a package in school that converts video into HTML5 format and put this video on the school website:

    http://www.bigwood.nottingham.sch.uk...L5 Test 1.html

    The code to it is very simple:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Video HTML5 Test 1</title>
    </head>
    
    <body><video id=0 controls width=640 height=360>
    <source src="1.ogv" type='video/ogg; codecs="theora, vorbis"'/>
    <source src="1.webm" type='video/webm' >
    <source src="1.mp4" type='video/mp4'>
    <p>Video is not visible, most likely your browser does not support HTML5 video</p>
    </video>
    </body>
    </html>
    Now in Dreamweaver, it works fine in the Live View format, and when I save the work and look at the page from my computer it works fine too.

    I've looked at it in Chrome and it works fine as well there but the problem is that we currently use Internet Explorer 9 on all our school PC's and it doesn't work on that. I don't undertsand though how it can work on my Dreamweaver preview and when I see it in its folder on My Computer yet online it doesn't as I assume that it's using IE9 in DW and my Computer.

    Is there a short and simple solution to allow me to show videos using HTML5 (we're not using Flash as a lot of people use Ipads in school) but still using IE9 as I've asked the IT technician about IE11 and he says it's not going to happen pretty soon.

    Many thanks for any help on this project.


    Jay Dog

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    Quote Originally Posted by Jay Dog View Post
    Now in Dreamweaver, it works fine in the Live View format …
    Never use DreamWeaver as a preview tool*. It is not a browser. No one will ever browse your finished site using DreamWeaver.
    How DreamWeaver renders your website is completely irrelevant (and, as you have discovered, it is also misleading).

    * I would go as far as to say "never use DreamWeaver" at all (nor any other similar program), but one step at a time. : )

    Quote Originally Posted by Jay Dog View Post
    I've looked at it in Chrome and it works fine as well there but the problem is that we currently use Internet Explorer 9 on all our school PC's and it doesn't work on that. I don't undertsand though how it can work on my Dreamweaver preview and when I see it in its folder on My Computer yet online it doesn't as I assume that it's using IE9 in DW and my Computer.
    As I understand, DW uses its own rendering engine. If by "look at the page from my computer" you mean you're opening the webpage as a file, then you would be using whichever browser you have set as the default on your system.

    In short, always preview your work in real web browsers. I start with Chrome, double-check in FireFox, and then start with cleanup work in the various versions of IE.

    Quote Originally Posted by Jay Dog View Post
    Is there a short and simple solution to allow me to show videos using HTML5
    Check out HTML5 Video For All. It's the same approach as you have above, but includes a flash fallback for older versions of IE.
    Edit: Actually, this is the example I was thinking of: better markup, no conditional comments.


    Something else I would suggest is including a download link in your "unsupported" message; that way, the video is available even to user with browsers that don't support video at all.
    Last edited by traq; 02-10-2014 at 05:32 PM.

  3. The Following User Says Thank You to traq For This Useful Post:

    Jay Dog (02-11-2014)

  4. #3
    Join Date
    Oct 2012
    Location
    England
    Posts
    103
    Thanks
    28
    Thanked 2 Times in 1 Post

    Default

    That's great man! Thanks. Just one thing, is there a simple way of stopping the autoplay?

    It's been a while since I've done anything with Flash and I do recall having to add some Actionscript to the Flash file but is there an even simpler way of doing it with the code?

    Also I've noticed the controls disappear in IE9, is this something I need to sort out in Flash?

    Thanks,


    Jay Dog

Similar Threads

  1. HTML5 Notepad
    By shimaa in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 04-16-2013, 04:26 AM
  2. UTF-8 with HTML5
    By techno_race in forum Coding tips & tutorials threads
    Replies: 16
    Last Post: 06-23-2012, 06:03 PM
  3. Resolved HTML5 tags and CSS
    By CChawps in forum HTML
    Replies: 6
    Last Post: 07-26-2011, 08:04 PM
  4. HTML5 help
    By john123a in forum HTML
    Replies: 3
    Last Post: 06-30-2011, 12:42 AM
  5. html5 video
    By ggalan in forum HTML
    Replies: 9
    Last Post: 06-03-2010, 07:57 PM

Bookmarks

Posting Permissions

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