Bug 163726 - [Modern Media Controls] Media Controller: scrubbing support
Summary: [Modern Media Controls] Media Controller: scrubbing support
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari 10
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-10-20 07:06 PDT by Antoine Quint
Modified: 2016-10-28 02:43 PDT (History)
3 users (show)

See Also:


Attachments
Patch (26.93 KB, patch)
2016-10-20 07:10 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff
Patch for landing (63.88 KB, patch)
2016-10-27 15:47 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-cq-01 for mac-yosemite (921.20 KB, application/zip)
2016-10-27 16:48 PDT, WebKit Commit Bot
no flags Details
Patch for landing (66.09 KB, patch)
2016-10-28 02:02 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff
Patch for landing (65.97 KB, patch)
2016-10-28 02:08 PDT, Antoine Quint
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2016-10-20 07:06:19 PDT
Make the time control scrubber reflect the media's current time and update the media current time as the user interacts with the scrubber.
Comment 1 Antoine Quint 2016-10-20 07:06:39 PDT
<rdar://problem/27989481>
Comment 2 Antoine Quint 2016-10-20 07:10:17 PDT
Created attachment 292175 [details]
Patch
Comment 3 Antoine Quint 2016-10-20 07:10:33 PDT
Tests to follow, but the code can be reviewed in the meantime.
Comment 4 Dean Jackson 2016-10-20 19:01:48 PDT
Comment on attachment 292175 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=292175&action=review

> Source/WebCore/rendering/RenderThemeMac.mm:263
> +            NSArray *mediaPaths = @[@"media-controller-support", @"mute-support", @"scrubbing-support", @"start-support", @"media-controller"];

This is getting a bit big. I think you should have a build step that generates a single file first, which is loaded from here. That saves us calling stringWithContentsOfFile so many times.
Comment 5 Antoine Quint 2016-10-21 01:18:42 PDT
(In reply to comment #4)
> Comment on attachment 292175 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=292175&action=review
> 
> > Source/WebCore/rendering/RenderThemeMac.mm:263
> > +            NSArray *mediaPaths = @[@"media-controller-support", @"mute-support", @"scrubbing-support", @"start-support", @"media-controller"];
> 
> This is getting a bit big. I think you should have a build step that
> generates a single file first, which is loaded from here. That saves us
> calling stringWithContentsOfFile so many times.

Good point, there is no need to do this at runtime, except maybe to only have certain platform-specific (macOS vs. iOS) files loaded based on the platform at runtime, but even that can be done by generating two different CSS and JS files for macOS vs. iOS. I'll take a crack at it.
Comment 6 Antoine Quint 2016-10-27 15:41:13 PDT
Some of the new tests are skipped on iOS due to using eventSender, see https://bugs.webkit.org/show_bug.cgi?id=164088.
Comment 7 Antoine Quint 2016-10-27 15:47:20 PDT
Created attachment 293071 [details]
Patch for landing
Comment 8 WebKit Commit Bot 2016-10-27 16:48:23 PDT
Comment on attachment 293071 [details]
Patch for landing

Rejecting attachment 293071 [details] from commit-queue.

New failing tests:
http/tests/media/modern-media-controls/skip-back-support/skip-back-support-button-click.html
media/modern-media-controls/scrubber-support/scrubber-support-click.html
Full output: http://webkit-queues.webkit.org/results/2388810
Comment 9 WebKit Commit Bot 2016-10-27 16:48:25 PDT
Created attachment 293079 [details]
Archive of layout-test-results from webkit-cq-01 for mac-yosemite

The attached test failures were seen while running run-webkit-tests on the commit-queue.
Bot: webkit-cq-01  Port: mac-yosemite  Platform: Mac OS X 10.10.5
Comment 10 Antoine Quint 2016-10-28 02:02:25 PDT
Created attachment 293126 [details]
Patch for landing
Comment 11 WebKit Commit Bot 2016-10-28 02:03:22 PDT
Comment on attachment 293126 [details]
Patch for landing

Rejecting attachment 293126 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'apply-attachment', '--no-update', '--non-interactive', 293126, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
g file LayoutTests/media/modern-media-controls/start-support/start-support-no-source.html
patching file LayoutTests/platform/ios-simulator/TestExpectations
Hunk #1 succeeded at 2705 (offset 3 lines).
patching file LayoutTests/platform/mac/TestExpectations
Hunk #1 FAILED at 1455.
1 out of 1 hunk FAILED -- saving rejects to file LayoutTests/platform/mac/TestExpectations.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/2391464
Comment 12 Antoine Quint 2016-10-28 02:08:07 PDT
Created attachment 293128 [details]
Patch for landing
Comment 13 WebKit Commit Bot 2016-10-28 02:43:36 PDT
Comment on attachment 293128 [details]
Patch for landing

Clearing flags on attachment: 293128

Committed r208042: <http://trac.webkit.org/changeset/208042>
Comment 14 WebKit Commit Bot 2016-10-28 02:43:40 PDT
All reviewed patches have been landed.  Closing bug.