Switch branches/tags
Nothing to show
Find file
6ee93d7 Feb 25, 2011
36 lines (33 sloc) 1.96 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Displaying the current time of a HTML5 video</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="style.css?v=2">
<!--[if lt IE 9]>
<script src="html5shiv.js"></script>
<header><h1>Displaying the current time of a HTML5 video</h1></header>
<div id="stage">
<video src="" controls></video>
<div id="time"></div>
var v = document.getElementsByTagName('video')[0]
var t = document.getElementById('time');
t.innerHTML = parseInt(v.currentTime) + ' - ' + v.currentTime;
<footer> <small><a rel="license" href=""><img alt="Creative Commons License" style="border-width:0" src="" /></a> <span xmlns:dct="" href="" property="dct:title" rel="dct:type">Syncing page content with HTML5 video</span> by <a xmlns:cc="" href="" property="cc:attributionName" rel="cc:attributionURL">Christian Heilmann</a> is licensed under a <a rel="license" href="">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>. Based on a work at <a xmlns:dct="" href="" rel="dct:source"></a>.</small>
<span class="logo"><a href="">
<img src="" width="197" height="64" alt="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics" title="HTML5 Powered with CSS3 / Styling, Multimedia, and Semantics">