[webkit-dev] Video feature request

Oliver Hunt oliver at apple.com
Thu Jan 14 10:09:52 PST 2010


On Jan 14, 2010, at 10:06 AM, Chris Marrin wrote:

> 
> On Jan 14, 2010, at 9:23 AM, Oliver Hunt wrote:
> 
>> 
>> On Jan 14, 2010, at 9:00 AM, Zack S wrote:
>> 
>>> Hi all,  
>>> 
>>> There's a feature that I would find useful that's not as far as I know a part of HTML5/Javascript in Webkit based browsers.  
>>> 
>>> Namely, I'd like to be able to open a video from within Javascript without necessarily wanting to play it, but rather I want to be able to extract frames out of it as image objects and/or to extract the corresponding sound portions of frames.  
>> 
>> I can't speak to the sound aspect of this, but you can get pixel data by painting a <video> to the canvas element.
> 
> There are cross-domain restrictions on this functionality, right?

The cross-origin restrictions are only present when reading back from the canvas - but any api that allowed someone to read or transmit the content of a video element from js would need to have the same restrictions.

--Oliver

> 
> -----
> ~Chris
> cmarrin at apple.com
> 
> 
> 
> 



More information about the webkit-dev mailing list