<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Jumping to time offsets in HTML5 video</title>
	<atom:link href="http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/</link>
	<description>Silvia&#039;s blog</description>
	<lastBuildDate>Sun, 28 Feb 2010 17:51:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Flash, mobiles, Firefox and more: following on from the other day&#8230; @ Technology News</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-4162</link>
		<dc:creator>Flash, mobiles, Firefox and more: following on from the other day&#8230; @ Technology News</dc:creator>
		<pubDate>Fri, 05 Feb 2010 08:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-4162</guid>
		<description>[...] then perform actions (e.g. scripts) when you hit those points?&#8221; with taking a quick look at this link I don&#8217;t see why not? You certainly seem to be able to access the current time using [...]</description>
		<content:encoded><![CDATA[<p>[...] then perform actions (e.g. scripts) when you hit those points?&#8221; with taking a quick look at this link I don&#8217;t see why not? You certainly seem to be able to access the current time using [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvia</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3933</link>
		<dc:creator>silvia</dc:creator>
		<pubDate>Mon, 25 Jan 2010 08:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3933</guid>
		<description>The open media community rocks indeed :-) there&#039;s help everywhere!</description>
		<content:encoded><![CDATA[<p>The open media community rocks indeed <img src='http://blog.gingertech.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  there&#8217;s help everywhere!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3931</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 25 Jan 2010 06:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3931</guid>
		<description>Awesome! Thanks for the great help, onloadedmetadata instead of just onload worked fine! Great and thx again!</description>
		<content:encoded><![CDATA[<p>Awesome! Thanks for the great help, onloadedmetadata instead of just onload worked fine! Great and thx again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvia</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3927</link>
		<dc:creator>silvia</dc:creator>
		<pubDate>Mon, 25 Jan 2010 01:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3927</guid>
		<description>@Thomas, you could try simply replacing the &quot;onload&quot; attribute with a &quot;onloadedmetadata&quot; - that might do the trick.</description>
		<content:encoded><![CDATA[<p>@Thomas, you could try simply replacing the &#8220;onload&#8221; attribute with a &#8220;onloadedmetadata&#8221; &#8211; that might do the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Gregan</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3925</link>
		<dc:creator>Matthew Gregan</dc:creator>
		<pubDate>Mon, 25 Jan 2010 01:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3925</guid>
		<description>Thomas,

As of Firefox 3.6, we no longer fire the &#039;load&#039; event for videos (bug 521359 at bugzilla.mozilla.org explains why), so the code you have in  will never be executed.  I suspect the other method you tried (setting currentTime after calling getElementById) tried to seek before the video had initialized (open the script error console via Tools-&gt;Error Console and look for an error to confirm this)--you need to wait until it&#039;s safe to seek, e.g. by waiting for the loadedmetadata event.</description>
		<content:encoded><![CDATA[<p>Thomas,</p>
<p>As of Firefox 3.6, we no longer fire the &#8216;load&#8217; event for videos (bug 521359 at bugzilla.mozilla.org explains why), so the code you have in  will never be executed.  I suspect the other method you tried (setting currentTime after calling getElementById) tried to seek before the video had initialized (open the script error console via Tools-&gt;Error Console and look for an error to confirm this)&#8211;you need to wait until it&#8217;s safe to seek, e.g. by waiting for the loadedmetadata event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Ressler</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3924</link>
		<dc:creator>Michael Ressler</dc:creator>
		<pubDate>Mon, 25 Jan 2010 01:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3924</guid>
		<description>@Thomas, exactly to Silvia&#039;s point, I use the loadedmetadata callback like so:

video.addEventListener(&quot;loadedmetadata&quot;, function () {
	video.currentTime = newTime;
}, false);

And it works perfectly.  I was having similar problems with Firefox 3.5 and found this solution with Silvia&#039;s help.  Good luck!</description>
		<content:encoded><![CDATA[<p>@Thomas, exactly to Silvia&#8217;s point, I use the loadedmetadata callback like so:</p>
<p>video.addEventListener(&#8220;loadedmetadata&#8221;, function () {<br />
	video.currentTime = newTime;<br />
}, false);</p>
<p>And it works perfectly.  I was having similar problems with Firefox 3.5 and found this solution with Silvia&#8217;s help.  Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvia</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3923</link>
		<dc:creator>silvia</dc:creator>
		<pubDate>Mon, 25 Jan 2010 01:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3923</guid>
		<description>@Thomas maybe the order in which the onload event is executed and the video load is executed has changed. I don&#039;t actually know and it doesn&#039;t actually matter. According to the HTML5 specification, you need to wait until the video is loaded, i.e. in loadedmetadata status before you can execute the currentTime attribute reliably. Otherwise it&#039;s random what happens.</description>
		<content:encoded><![CDATA[<p>@Thomas maybe the order in which the onload event is executed and the video load is executed has changed. I don&#8217;t actually know and it doesn&#8217;t actually matter. According to the HTML5 specification, you need to wait until the video is loaded, i.e. in loadedmetadata status before you can execute the currentTime attribute reliably. Otherwise it&#8217;s random what happens.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3912</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sun, 24 Jan 2010 14:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3912</guid>
		<description>I just updated Firefox to 3.6 and now the javascript video.currentTime no longer works. It worked perfectly in 3.5.
I used the following code to start the video at a specific time that I calculated using javascript beforehand:

fallback

var video = document.getElementById(&quot;myVideo&quot;);


As I said, this worked fine in 3.5 but when I open the same html-file in 3.6, the video always starts playing at beginning and not at the time offset given in &quot;TimeToJump&quot;.

I also tried putting video.currentTime=TimeToJump into the  on the bottom right under var=[...] but still, the video played from the beginning instead of the time offset.

The example given at http://annodex.net/~silvia/itext/mediafrag.html works in 3.6 so the browser seems to be capable of playing videos at a time offset, just not with the simple video.currentTime function in javascript. The code that is used for this example is way more complicated than what I used and what used to work in 3.5!

Here is the complete html-code http://pastebin.com/f40d55f69

Any help on how to get this to work as simple as possible with Firefox 3.6 (and all other browsers) would be awesome!

Thx a lot for the great information so far,
Thomas</description>
		<content:encoded><![CDATA[<p>I just updated Firefox to 3.6 and now the javascript video.currentTime no longer works. It worked perfectly in 3.5.<br />
I used the following code to start the video at a specific time that I calculated using javascript beforehand:</p>
<p>fallback</p>
<p>var video = document.getElementById(&#8220;myVideo&#8221;);</p>
<p>As I said, this worked fine in 3.5 but when I open the same html-file in 3.6, the video always starts playing at beginning and not at the time offset given in &#8220;TimeToJump&#8221;.</p>
<p>I also tried putting video.currentTime=TimeToJump into the  on the bottom right under var=[...] but still, the video played from the beginning instead of the time offset.</p>
<p>The example given at <a href="http://annodex.net/~silvia/itext/mediafrag.html" rel="nofollow">http://annodex.net/~silvia/itext/mediafrag.html</a> works in 3.6 so the browser seems to be capable of playing videos at a time offset, just not with the simple video.currentTime function in javascript. The code that is used for this example is way more complicated than what I used and what used to work in 3.5!</p>
<p>Here is the complete html-code <a href="http://pastebin.com/f40d55f69" rel="nofollow">http://pastebin.com/f40d55f69</a></p>
<p>Any help on how to get this to work as simple as possible with Firefox 3.6 (and all other browsers) would be awesome!</p>
<p>Thx a lot for the great information so far,<br />
Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: silvia</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3882</link>
		<dc:creator>silvia</dc:creator>
		<pubDate>Thu, 21 Jan 2010 19:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3882</guid>
		<description>Stepping through a video is a feature of a player, so it&#039;s up to the software to provide this. The URI addressing scheme can accommodate it. So, you&#039;re free to implement a video player that provides that accuracy. Current browser implementations will do the best they can and with the &quot;currenttime&quot; attribute in HTML5 media you will be able to control it. You can write your own javascript to test this, btw. You can get inspiration from http://annodex.net/~silvia/itext/mediafrag.html . (Though: I believe there is a bug in there that ignores subseconds).</description>
		<content:encoded><![CDATA[<p>Stepping through a video is a feature of a player, so it&#8217;s up to the software to provide this. The URI addressing scheme can accommodate it. So, you&#8217;re free to implement a video player that provides that accuracy. Current browser implementations will do the best they can and with the &#8220;currenttime&#8221; attribute in HTML5 media you will be able to control it. You can write your own javascript to test this, btw. You can get inspiration from <a href="http://annodex.net/~silvia/itext/mediafrag.html" rel="nofollow">http://annodex.net/~silvia/itext/mediafrag.html</a> . (Though: I believe there is a bug in there that ignores subseconds).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Ressler</title>
		<link>http://blog.gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/comment-page-1/#comment-3879</link>
		<dc:creator>Michael Ressler</dc:creator>
		<pubDate>Thu, 21 Jan 2010 13:37:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.gingertech.net/?p=496#comment-3879</guid>
		<description>My use case for something like this would be to step through sports videos for player review.  I wouldn&#039;t need audio at all.  I&#039;d just like to be able to allow my users to step frame by frame through the video.

I&#039;m looking forward to the variable playback rate for this very reason.  Frame by frame stepping would be useful as well.</description>
		<content:encoded><![CDATA[<p>My use case for something like this would be to step through sports videos for player review.  I wouldn&#8217;t need audio at all.  I&#8217;d just like to be able to allow my users to step frame by frame through the video.</p>
<p>I&#8217;m looking forward to the variable playback rate for this very reason.  Frame by frame stepping would be useful as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
