RESOLVED FIXED 114484
Add support for MediaPlayer::minTimeSeekable()
https://bugs.webkit.org/show_bug.cgi?id=114484
Summary Add support for MediaPlayer::minTimeSeekable()
Jer Noble
Reported 2013-04-11 17:45:11 PDT
Add support for MediaPlayer::minTimeSeekable()
Attachments
Patch (13.74 KB, patch)
2013-04-11 17:53 PDT, Jer Noble
no flags
Patch (11.26 KB, patch)
2013-04-11 21:51 PDT, Jer Noble
no flags
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion (482.77 KB, application/zip)
2013-04-12 02:13 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion (725.32 KB, application/zip)
2013-04-12 02:34 PDT, Build Bot
no flags
Patch (13.82 KB, patch)
2013-04-12 10:10 PDT, Jer Noble
eric.carlson: review+
Jer Noble
Comment 1 2013-04-11 17:53:52 PDT
Jer Noble
Comment 2 2013-04-11 21:51:16 PDT
Created attachment 197713 [details] Patch Fixed windows build errors by adding symbols needed by WebCoreTestSupport to exports list.
Jer Noble
Comment 3 2013-04-11 21:53:41 PDT
Wrong bug; disregard attachment 197713 [details].
Build Bot
Comment 4 2013-04-12 02:13:02 PDT
Comment on attachment 197705 [details] Patch Attachment 197705 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/132008 New failing tests: media/video-seek-past-end-paused.html
Build Bot
Comment 5 2013-04-12 02:13:03 PDT
Created attachment 197734 [details] Archive of layout-test-results from webkit-ews-02 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-02 Port: mac-mountainlion Platform: Mac OS X 10.8.2
Build Bot
Comment 6 2013-04-12 02:34:10 PDT
Comment on attachment 197705 [details] Patch Attachment 197705 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/81201 New failing tests: media/video-seek-past-end-paused.html
Build Bot
Comment 7 2013-04-12 02:34:12 PDT
Created attachment 197735 [details] Archive of layout-test-results from webkit-ews-03 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-03 Port: mac-mountainlion Platform: Mac OS X 10.8.2
Jer Noble
Comment 8 2013-04-12 08:19:01 PDT
The test failures will be fixed by bug #114483. Marking this bug as dependent on that one.
Eric Carlson
Comment 9 2013-04-12 09:59:46 PDT
Comment on attachment 197705 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=197705&action=review > Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:696 > + double minTimeSeekable = std::numeric_limits<double>::infinity(); > + for (NSValue *thisRangeValue in seekableRanges) { > + CMTimeRange timeRange = [thisRangeValue CMTimeRangeValue]; > + if (!CMTIMERANGE_IS_VALID(timeRange) || CMTIMERANGE_IS_EMPTY(timeRange)) > + continue; > + > + double startOfRange = CMTimeGetSeconds(timeRange.start); > + if (minTimeSeekable > startOfRange) > + minTimeSeekable = startOfRange; > + } > + return minTimeSeekable; infinity() is probably not the right value to return if seekableRanges is not empty, but does not have any valid ranges. Definitely an edge case, but probably worth special casing.
Jer Noble
Comment 10 2013-04-12 10:10:27 PDT
Created attachment 197864 [details] Patch Return a 0 from platformMinTimeSeekable() if -seekableTimeRanges have no valid ranges.
Jer Noble
Comment 11 2013-04-12 11:38:14 PDT
Note You need to log in before you can comment on or make changes to this bug.