Summary: | Canvas drawImage does not support video | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean McNamee <deanm> | ||||
Component: | DOM | Assignee: | Oliver Hunt <oliver> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ajwong, arv, dino, eric, oliver, simon.fraser, sjoerd | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | OS X 10.5 | ||||||
Attachments: |
|
Description
Dean McNamee
2009-05-21 02:02:03 PDT
I started looking into this. Doesn't seem too hard (...famous last words...). The biggest problem is being able to paint part of the current video frame, which the media players don't yet support. I'm thinking of either adding a GetCurrentFrame method to the media player, or an additional paint function that can take a clipping parameter. I already have an implementation on mac, we're just working out design and windows issues Hello, Has there been any update on this issue? We've itching to play around with videos on canvases :) I'll be looking at this again once i've finished my current work with JSON Created attachment 31769 [details]
Video->Canvas
Got eric to do the windows side of this for me. See how windows slows progress? :D
Comment on attachment 31769 [details]
Video->Canvas
r=me
Committing to http://svn.webkit.org/repository/webkit/trunk ... M LayoutTests/ChangeLog A LayoutTests/media/video-canvas-expected.txt A LayoutTests/media/video-canvas.html M WebCore/ChangeLog M WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp M WebCore/html/CanvasRenderingContext2D.cpp M WebCore/html/CanvasRenderingContext2D.h M WebCore/html/HTMLMediaElement.h M WebCore/html/HTMLVideoElement.cpp M WebCore/html/HTMLVideoElement.h M WebCore/platform/graphics/MediaPlayer.cpp M WebCore/platform/graphics/MediaPlayer.h M WebCore/platform/graphics/MediaPlayerPrivate.h M WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h M WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm M WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp M WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h Committed r45060 |