NEW 138657
Video as image
https://bugs.webkit.org/show_bug.cgi?id=138657
Summary Video as image
Antti Koivisto
Reported 2014-11-12 06:31:57 PST
Support real video formats wherever images are allowed (<img>, CSS backgrounds, etc.) Semantics like animated GIF.
Attachments
wip patch (19.88 KB, patch)
2014-11-12 06:32 PST, Antti Koivisto
no flags
wip, rebased and with actual mime type handling (20.16 KB, patch)
2014-11-12 15:42 PST, Antti Koivisto
no flags
attempt to use media source extensions (27.15 KB, patch)
2015-01-21 13:55 PST, Antti Koivisto
no flags
Antti Koivisto
Comment 1 2014-11-12 06:32:40 PST
Created attachment 241422 [details] wip patch
Eric Carlson
Comment 2 2014-11-12 10:17:48 PST
Comment on attachment 241422 [details] wip patch View in context: https://bugs.webkit.org/attachment.cgi?id=241422&action=review Nice! > Source/WebCore/platform/graphics/VideoImage.cpp:84 > + if (m_player->readyState() >= MediaPlayer::HaveEnoughData) > + m_frameTimer.startOneShot(16_ms); > + > + if (m_player->duration() > MediaTime::zeroTime() && m_player->currentTime() >= m_player->duration()) { > + fprintf(stderr, "seeking %d\n", m_player->readyState()); > + m_player->seek(MediaTime::zeroTime()); > + } It seems like we should seek to the next frame if possible instead of using a hard coded interval. How about adding MediaPlayer::step(int numberOfFrames) - and have the default MediaPlayerPrivate implementation seek 16_ms * numberOfFrames so it works like this does until ports implement stepping logic?
Antti Koivisto
Comment 3 2014-11-12 15:28:21 PST
> It seems like we should seek to the next frame if possible instead of using > a hard coded interval. How about adding MediaPlayer::step(int > numberOfFrames) - and have the default MediaPlayerPrivate implementation > seek 16_ms * numberOfFrames so it works like this does until ports implement > stepping logic? Makes sense. I was actually trying to find a "new frame available" callback so the media player could drive the paints. MediaPlayerClient::mediaPlayerRepaint sounded like it but it didn't seem to actually get called. The timer was more of a hack.
Antti Koivisto
Comment 4 2014-11-12 15:42:16 PST
Created attachment 241448 [details] wip, rebased and with actual mime type handling
Antti Koivisto
Comment 5 2015-01-21 13:55:34 PST
Created attachment 245080 [details] attempt to use media source extensions
Note You need to log in before you can comment on or make changes to this bug.