[Qt] Pre-roll media when loading media elements
authorTor Arne Vestbø <vestbo@webkit.org>
Tue, 17 Aug 2010 12:15:04 +0000 (12:15 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Thu, 20 Jan 2011 19:55:22 +0000 (16:55 -0300)
commit59e84a07c5226448b83259499c4ee8e2ca7c59d6
tree4904f71091fefedcb578f04d25419ce0ab25dbb9
parent6a0dc5764fccb294dfb2a82142022ca91903fea3
[Qt] Pre-roll media when loading media elements

Reviewed by Antonio Gomes.

This ensures we get correct size-hints from QtMultimedia, as well as
the media states Buffering and Buffered instead of Loading and Loaded,
which we use to transition into MediaPlayer::HaveEnoughData.

* platform/graphics/qt/MediaPlayerPrivateQt.cpp:
* platform/graphics/qt/MediaPlayerPrivateQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h