1. 23 Aug, 2013 1 commit
  2. 07 Dec, 2010 1 commit
    • philn@webkit.org's avatar
      2010-12-07 Philippe Normand <pnormand@igalia.com> · 6b4764ec
      philn@webkit.org authored
              Reviewed by Gustavo Noronha Silva.
      
              [GStreamer] ::buffered() should return multiple ranges in some cases
              https://bugs.webkit.org/show_bug.cgi?id=45101
      
              Improved the ::buffered() method thanks to the new buffering query
              support that landed in GStreamer 0.10.31. The method now
              queries the media buffered-ranges on the pipeline and queue2
              handles it if it's buffering the media to disk.
      
              The webkitwebsrc element also gained BYTES duration query
              support. This is needed in the rare cases where uridecodebin
              configures its queue before the HTTP server returns the media
              Content-Length.
      
              Test: http/tests/media/video-buffered.html
      
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::MediaPlayerPrivateGStreamer::buffered):
              * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
              (webkit_web_src_init):
              (webKitWebSrcQuery): Make webkitwebsrc handle the duration queries
              if it's aware of the media content-length.
              * platform/gtk/RenderThemeGtk.cpp:
              (WebCore::RenderThemeGtk::paintMediaSliderTrack): Fix position of
              the second and next buffered ranges.
      
      LayoutTests:
      
              Reviewed by Gustavo Noronha Silva.
      
              [GStreamer] ::buffered() should return multiple ranges in some cases
              https://bugs.webkit.org/show_bug.cgi?id=45101
      
              New test for video.buffered attribute. The test is skipped for
              ports not returning multiple timeranges for video.buffered.
      
              * http/tests/media/video-buffered-expected.txt: Added.
              * http/tests/media/video-buffered.html: Added.
              * http/tests/resources/counting-captioned.mov: Added.
              * http/tests/media/video-throttled-load.cgi: added Range
              requests/responses support.
              * platform/chromium/test_expectations.txt:
              * platform/mac-leopard/Skipped:
              * platform/mac-snowleopard/Skipped:
              * platform/mac-tiger/Skipped:
              * platform/mac-wk2/Skipped:
              * platform/mac/Skipped:
              * platform/qt-mac/Skipped:
              * platform/qt-win/Skipped:
              * platform/qt-wk2/Skipped:
              * platform/qt/Skipped:
              * platform/win-wk2/Skipped:
              * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b4764ec
  3. 07 Jan, 2010 1 commit
  4. 20 Aug, 2009 1 commit
    • ajwong@chromium.org's avatar
      WebCore: HTML5 media elements do not fire waiting events correctly · 5a68d7cd
      ajwong@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28335
      
      Patch by Albert J. Wong <ajwong@chromium.org> on 2009-08-20
      Reviewed by David Levin.
      
      Fire the waiting event before seeking, and fix a case where firing of
      the seeked event is missed when the ready state is changed during
      a seek.
      
      Added video-waiting-seeking.html into manual tests because not
      all platforms allow seeking into non-buffered ranges.
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::setReadyState): add support for
      waiting event when seeking.
      (WebCore::HTMLMediaElement::finishSeek): send seeked event
      whenever seeking finishes.
      (WebCore::HTMLMediaElement::mediaPlayerTimeChanged): dispatch to
      new function.
      * html/HTMLMediaElement.h:
      * manual-tests/video-waiting-seeking.html: Added.
      
      LayoutTests: HTML5 media elements do not fire waiting events correctly
      https://bugs.webkit.org/show_bug.cgi?id=28335
      
      Patch by Albert J. Wong <ajwong@chromium.org> on 2009-08-20
      Reviewed by David Levin.
      
      New manual test to check if waiting/seeking events are fired
      when seeking into a non-buffered region.
      
      * http/tests/media/video-throttled-load.cgi: Added.
      * media/video-test.js:
      (isInTimeRanges):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a68d7cd