[whatwg] Canvas and Image problems

2010-05-23 Thread Schalk Neethling
Hi everyone, Having a really weird problem that I would like some input on. I am trying to draw an image, as well as video, onto canvas. I use the simple code below: $(document).ready(function() { var image = $(#cat).get(0); var cv = $(#img_container).get(0);

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Silvia Pfeiffer
2010/5/23 Carlos Andrés Solís csol...@gmail.com: Hello, I've been writing lately in the WHATWG and WebM mail-lists and would like to hear your opinion on the following idea. Imagine a hypothetical website that delivers videos with subtitles that can be chosen by the user. And also imagine

Re: [whatwg] Canvas and Image problems

2010-05-23 Thread Eduard Pascual
On Sun, May 23, 2010 at 12:16 PM, Schalk Neethling sch...@ossreleasefeed.com wrote: Hi everyone, Having a really weird problem that I would like some input on. I am trying to draw an image, as well as video, onto canvas. I use the simple code below: $(document).ready(function() {  

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Odin Omdal Hørthe
2010/5/23 Silvia Pfeiffer silviapfeiff...@gmail.com: I guess I'm starting to talk myself into wanting a more HTML-like format than WebSRT that scales to provide full features by using existing Web technology. I'd be curious to hear what others think... I want to use it for slide sync

Re: [whatwg] On implementing videos with multiple tracks in HTML5

2010-05-23 Thread Silvia Pfeiffer
Hi Carlos, 2010/5/23 Carlos Andrés Solís csol...@gmail.com: Hello, I've been writing lately in the WHATWG and WebM mail-lists and would like to hear your opinion on the following idea. Imagine a hypothetical website that delivers videos in multiple languages. Like on a DVD, where you can

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Chris Double
2010/5/23 Odin Omdal Hørthe odin.om...@gmail.com: Anyway, as of now I'm just waiting for a way to tell my webapp what slide we're on (sync with the live streaming video). Can't you use the timeupdate event, get the 'currentTime' from the video, and decide what slide to show based on that? Or

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Odin Omdal Hørthe
On Sun, May 23, 2010 at 1:24 PM, Chris Double chris.dou...@double.co.nz wrote: 2010/5/23 Odin Omdal Hørthe odin.om...@gmail.com: Anyway, as of now I'm just waiting for a way to tell my webapp what slide we're on (sync with the live streaming video). Can't you use the timeupdate event, get the

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Chris Double
On Sun, May 23, 2010 at 11:40 PM, Odin Omdal Hørthe odin.om...@gmail.com wrote: So it's quite impossible to use that for syncing. I asked about that here in this list, and got the answer that this is what we have startTime property for, -- but it is not implemented correctly in any browsers.

Re: [whatwg] Built-in image sprite support in HTML5

2010-05-23 Thread Aryeh Gregor
On Fri, May 21, 2010 at 8:07 PM, Silvia Pfeiffer silviapfeiff...@gmail.com wrote: However, what exactly happens with a media fragment URI like http://example.com/picture.png#xywh=160,120,320,240 is not fully specified in the Media Fragment URI spec. One thought was to just highlight the area

Re: [whatwg] Canvas and Image problems

2010-05-23 Thread Schalk Neethling
Hi there Eduard, Makes total sense, now why did I not think of that ;p Thanks, Schalk -Original Message- From: Eduard Pascual [mailto:herenva...@gmail.com] Sent: Sunday, May 23, 2010 12:33 PM To: Schalk Neethling Cc: whatwg@lists.whatwg.org Subject: Re: [whatwg] Canvas and Image

Re: [whatwg] Canvas and Image problems

2010-05-23 Thread Schalk Neethling
Jip, using $(window).load() works perfect. -Original Message- From: Eduard Pascual [mailto:herenva...@gmail.com] Sent: Sunday, May 23, 2010 12:33 PM To: Schalk Neethling Cc: whatwg@lists.whatwg.org Subject: Re: [whatwg] Canvas and Image problems On Sun, May 23, 2010 at 12:16 PM, Schalk

Re: [whatwg] Image resize API proposal

2010-05-23 Thread Chris Marrin
On May 22, 2010, at 3:03 AM, Robert O'Callahan wrote: On Sat, May 22, 2010 at 10:12 AM, David Levin le...@google.com wrote: There are a few issues here: This only applies when you can accelerate with a GPU. Not all devices may support this. This only applies to browsers that implement the

Re: [whatwg] CSS2 system colors in legacy color values

2010-05-23 Thread Simon Pieters
On Sat, 22 May 2010 21:06:53 +0200, L. David Baron dba...@dbaron.org wrote: The rules for parsing a legacy color value in http://www.whatwg.org/specs/web-apps/current-work/complete/common-microsyntaxes.html#rules-for-parsing-a-legacy-color-value specify that CSS2 system colors should be

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Tab Atkins Jr.
2010/5/22 Carlos Andrés Solís csol...@gmail.com: Hello, I've been writing lately in the WHATWG and WebM mail-lists and would like to hear your opinion on the following idea. Imagine a hypothetical website that delivers videos with subtitles that can be chosen by the user. And also imagine

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Robert O'Callahan
On Tue, May 18, 2010 at 9:46 PM, Silvia Pfeiffer silviapfeiff...@gmail.comwrote: To be honest, it doesn't make much sense to display the wrong time in a player. If a video stream starts at 10:30am and goes for 30 min, then a person joining the stream 10 min in should see a time of 10min - or

Re: [whatwg] On the subtitle format for HTML5

2010-05-23 Thread Silvia Pfeiffer
2010/5/24 Tab Atkins Jr. jackalm...@gmail.com: 2010/5/22 Carlos Andrés Solís csol...@gmail.com: Hello, I've been writing lately in the WHATWG and WebM mail-lists and would like to hear your opinion on the following idea. Imagine a hypothetical website that delivers videos with subtitles that

Re: [whatwg] Canvas and Image problems

2010-05-23 Thread Marius Gundersen
You could also add a listener to the image to check that it actually loads: $(document).ready(*function*() { *var* image = $(#cat).get(0); image.onload = function(e){ *var* cv = $(#img_container).get(0); *var* ctx = cv.getContext('2d');

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Silvia Pfeiffer
On Mon, May 24, 2010 at 11:03 AM, Robert O'Callahan rob...@ocallahan.org wrote: On Tue, May 18, 2010 at 9:46 PM, Silvia Pfeiffer silviapfeiff...@gmail.com wrote: To be honest, it doesn't make much sense to display the wrong time in a player. If a video stream starts at 10:30am and goes for 30

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Robert O'Callahan
On Mon, May 24, 2010 at 2:55 PM, Silvia Pfeiffer silviapfeiff...@gmail.comwrote: Just to clarify: what time would a video display as it is playing back in the browser? The currentTime+realTimeOffset (if any), where currentTime would include any initialPlaybackOffset? Yes. Rob -- He was

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Philip Jägenstedt
On Mon, 24 May 2010 03:03:15 +0200, Robert O'Callahan rob...@ocallahan.org wrote: On Tue, May 18, 2010 at 9:46 PM, Silvia Pfeiffer silviapfeiff...@gmail.comwrote: To be honest, it doesn't make much sense to display the wrong time in a player. If a video stream starts at 10:30am and goes for

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Silvia Pfeiffer
On Mon, May 24, 2010 at 1:52 PM, Philip Jägenstedt phil...@opera.com wrote: On Mon, 24 May 2010 03:03:15 +0200, Robert O'Callahan rob...@ocallahan.org wrote: On Tue, May 18, 2010 at 9:46 PM, Silvia Pfeiffer silviapfeiff...@gmail.comwrote: To be honest, it doesn't make much sense to display

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Robert O'Callahan
On Mon, May 24, 2010 at 3:52 PM, Philip Jägenstedt phil...@opera.comwrote: On Mon, 24 May 2010 03:03:15 +0200, Robert O'Callahan rob...@ocallahan.org wrote: Here's how I think it should work: -- currentTime (and related times, such as times in TimeRanges) range from 0 to 'duration' --

Re: [whatwg] Timestamp from video source in order to sync (e.g. expose OGG timestamp to javascript)

2010-05-23 Thread Philip Jägenstedt
On Mon, 24 May 2010 07:23:05 +0200, Robert O'Callahan rob...@ocallahan.org wrote: On Mon, May 24, 2010 at 3:52 PM, Philip Jägenstedt phil...@opera.comwrote: On Mon, 24 May 2010 03:03:15 +0200, Robert O'Callahan rob...@ocallahan.org wrote: Here's how I think it should work: --