WebCore:
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2008 18:24:59 +0000 (18:24 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2008 18:24:59 +0000 (18:24 +0000)
commitaeff4e346f50198229c8e4311a4da63162a23403
treeba47acea3b409bc76af9c9dec408f327206d7479
parent1b33577cb9e9087b678acf5137a8d73d4c877aca
WebCore:

        Reviewed by Adam.

        If the media is playing and the load stalls the playback wont restart by seeking backwards.

        We should be in CAN_PLAY state if the current time is less than the maximum loaded time. Rate
        tricks were for streaming case and are not necessary now since that is now disabled.

        Windows patch coming separately.

        Test: http/tests/media/video-play-stall-seek.html

        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        (WebCore::MediaPlayerPrivate::updateStates):

LayoutTests:

        Reviewed by Adam.

        Test that playback can be resumed by seeking backwards after a stall.

        * http/tests/media/video-play-stall-seek-expected.txt: Added.
        * http/tests/media/video-play-stall-seek.html: Added.
        * platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/media/video-play-stall-seek-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/media/video-play-stall-seek.html [new file with mode: 0644]
LayoutTests/platform/win/Skipped
WebCore/ChangeLog
WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm