WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
100378
[BlackBerry] Implement MediaPlayerPrivate::didLoadingProgress for BlackBerry Media Player
https://bugs.webkit.org/show_bug.cgi?id=100378
Summary
[BlackBerry] Implement MediaPlayerPrivate::didLoadingProgress for BlackBerry ...
John Griggs
Reported
2012-10-25 07:25:37 PDT
Bug 86113
replaced the progress mechanism based on MediaPlayerPrivate::bytesLoaded with one based on MediaPlayerPrivate::didLoadingProgress. This bug is to provide an implementation for this new method for the BlackBerry platform.
Attachments
Patch
(3.13 KB, patch)
2012-10-25 09:56 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(3.18 KB, patch)
2012-10-25 11:34 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(6.87 KB, patch)
2012-10-29 08:28 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(6.62 KB, patch)
2012-10-29 12:51 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(6.64 KB, patch)
2012-10-30 09:28 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(6.52 KB, patch)
2012-10-30 12:38 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(7.77 KB, patch)
2012-11-01 10:45 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Patch
(7.96 KB, patch)
2012-11-01 13:58 PDT
,
John Griggs
no flags
Details
Formatted Diff
Diff
Show Obsolete
(7)
View All
Add attachment
proposed patch, testcase, etc.
John Griggs
Comment 1
2012-10-25 09:56:44 PDT
Created
attachment 170679
[details]
Patch
John Griggs
Comment 2
2012-10-25 11:34:04 PDT
Created
attachment 170695
[details]
Patch
John Griggs
Comment 3
2012-10-25 11:34:54 PDT
Comment on
attachment 170695
[details]
Patch Updated ChangeLog to indicate why there are no new tests included.
Rob Buis
Comment 4
2012-10-25 14:47:17 PDT
Comment on
attachment 170695
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=170695&action=review
Generally looks good, some details we need to sort out still.
> Source/WebCore/ChangeLog:3 > + 2012-10-25 John Griggs <
jgriggs@rim.com
>
The ChangeLog needs some cleaning up. Basically it should match the layout of the other entries.
> Source/WebCore/platform/graphics/blackberry/MediaPlayerPrivateBlackBerry.h:176 > + mutable float m_lastLoadingTime;
I am not convinced mutalble is needed here, please try without it.
John Griggs
Comment 5
2012-10-29 08:28:03 PDT
Created
attachment 171251
[details]
Patch
John Griggs
Comment 6
2012-10-29 08:29:52 PDT
mutable is required on the data member because it is altered in a const method. The method (didLoadingProgress) is declared const in MediaPlayerPrivateInterface, so we can't re-declare it.
Rob Buis
Comment 7
2012-10-29 12:10:55 PDT
Comment on
attachment 171251
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171251&action=review
Looks good in general, some small issues to fix.
> Source/WebCore/ChangeLog:16 > + (MediaPlayerPrivate):
Please fix indenting here, look at other entries.
> LayoutTests/ChangeLog:13 > + * platform/blackberry/media/progress-events-generated-correctly.html: Added.
Ditto.
> LayoutTests/platform/blackberry/media/progress-events-generated-correctly.html:30 > + //consoleWrite("EVENT(progress): " + progressCount);
We don't want commented code. If you don't want this, better remove the line.
> LayoutTests/platform/blackberry/media/progress-events-generated-correctly.html:35 > + //consoleWrite("EVENT(ended): " + progressCount);
Ditto.
John Griggs
Comment 8
2012-10-29 12:51:24 PDT
Created
attachment 171294
[details]
Patch
John Griggs
Comment 9
2012-10-29 12:53:04 PDT
Comment on
attachment 171294
[details]
Patch Fix Changelog formatting Remove commented out lines from test case
Antonio Gomes
Comment 10
2012-10-29 18:36:43 PDT
Comment on
attachment 171294
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171294&action=review
> LayoutTests/ChangeLog:13 > + * platform/blackberry/media/progress-events-generated-correctly-expected.txt: Added. > + * platform/blackberry/media/progress-events-generated-correctly.html: Added.
Is this test supposed to be supported in platform other than BlackBerry?
John Griggs
Comment 11
2012-10-30 06:13:48 PDT
The test is specific to BlackBerry, at least for now, because the implementation of progress events lags on some platforms. The platforms that have not yet implemented MediaPlayerPrivateInterface::didLoadingProgress will fail this test.
Eric Carlson
Comment 12
2012-10-30 06:33:03 PDT
Comment on
attachment 171294
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=171294&action=review
> LayoutTests/ChangeLog:14 > +
Does this test do something more than the progress event part of LayoutTests/media/event-attributes.html?
Eric Carlson
Comment 13
2012-10-30 06:34:54 PDT
(In reply to
comment #11
)
> The test is specific to BlackBerry, at least for now, because the implementation of progress events lags on some platforms. The platforms that have not yet implemented MediaPlayerPrivateInterface::didLoadingProgress will fail this test.
See the above comment. If this test *is* only supported on BlackBerry but will eventually be supported on other platforms, it should go in LayoutTests/media/ and skipped on other platforms with bugs.
John Griggs
Comment 14
2012-10-30 06:38:57 PDT
If you look at the html file for LayoutTests/media/event-attributes, you will see that there is a comment at the top of the eventHandler that states that progress messages are not logged, since the order and number are platform specific, so that test does not cover progress events. I can move the test to a more general location, but I am not sure which platforms other than BlackBerry generate progress events during load and which ones would need to be disabled - perhaps enable it for BlackBerry only initially?
Eric Carlson
Comment 15
2012-10-30 08:54:57 PDT
(In reply to
comment #14
)
> If you look at the html file for LayoutTests/media/event-attributes, you will see that there is a comment at the top of the eventHandler that states that progress messages are not logged, since the order and number are platform specific, so that test does not cover progress events. >
No, the comment says not to *log* progress events because the number and order are platform specific. The test for the 'canplaythrough' event fails unless at least one 'progress' event has been fired: case "canplaythrough": testExpected('progressEventCount', 1, '>=')
> I can move the test to a more general location, but I am not sure which platforms other than BlackBerry generate progress events during load and which ones would need to be disabled - perhaps enable it for BlackBerry only initially?
Unless other platforms skip event-attributes.html or have failing results saved, all platforms generate progress events.
John Griggs
Comment 16
2012-10-30 09:02:50 PDT
Sorry - I guess my point about the existing test was not clear. The user agent fires a progress event when the source for a media element is resolved and then is supposed to generate another progress event every 300ms or for every byte loaded, which ever is less frequent. The existing test covers the event for resolving the source (which works on every platform), but not the ones for loading data, which varies by platform. My new test covers the progress events generated for loading data.
Eric Carlson
Comment 17
2012-10-30 09:22:44 PDT
(In reply to
comment #16
)
> Sorry - I guess my point about the existing test was not clear. The user agent fires a progress event when the source for a media element is resolved and then is supposed to generate another progress event every 300ms or for every byte loaded, which ever is less frequent. The existing test covers the event for resolving the source (which works on every platform), but not the ones for loading data, which varies by platform. > > My new test covers the progress events generated for loading data.
OK, I see that now. Please add something to the test so someone reading the results can easily see that.
John Griggs
Comment 18
2012-10-30 09:28:08 PDT
Created
attachment 171469
[details]
Patch
John Griggs
Comment 19
2012-10-30 09:30:59 PDT
Comment on
attachment 171469
[details]
Patch Update test title to: "Test that progress events are generated during loading of media resource." This appears in the test output.
Eric Carlson
Comment 20
2012-10-30 09:32:45 PDT
(In reply to
comment #17
)
> (In reply to
comment #16
) > > Sorry - I guess my point about the existing test was not clear. The user agent fires a progress event when the source for a media element is resolved and then is supposed to generate another progress event every 300ms or for every byte loaded, which ever is less frequent. The existing test covers the event for resolving the source (which works on every platform), but not the ones for loading data, which varies by platform. > > > > My new test covers the progress events generated for loading data. > > OK, I see that now. Please add something to the test so someone reading the results can easily see that.
Hang on, this test *should* pass on other ports as well because
r119187
added didLoadingProgress for OSX, Windows, GTK, Qt, and Chromium at least.
John Griggs
Comment 21
2012-10-30 10:15:11 PDT
I have to admit to trusting comments in tests and other bugs rather than checking all of the other platform's MediaPlayerPrivate implementations. It looks like many platforms do implement didLoadingProgress - I am still relatively new at this, is there a way to run the tests on other platforms to make sure I'm not missing any that should skip this test? Or should I simply move the test into LayoutTests/media and disable the failing platforms later?
Antonio Gomes
Comment 22
2012-10-30 10:40:31 PDT
You can CC people that might know for each port: OSSY (qt), martin robinson (GTK), etc.
John Griggs
Comment 23
2012-10-30 10:45:28 PDT
It seems to me that the chances of missing a person responsible for a port is about equal to the chance of missing the port itself. But if someone can supply a list, I am happy to add folks to the CC list...
Eric Carlson
Comment 24
2012-10-30 11:46:31 PDT
(In reply to
comment #23
)
> It seems to me that the chances of missing a person responsible for a port is about equal to the chance of missing the port itself. But if someone can supply a list, I am happy to add folks to the CC list...
If the patch has the test in LayoutTests/media/, the bots will tell you if a port fails to run it. Skip the test on the ports that fail and regenerate your patch, rinse, lather, and repeat.
John Griggs
Comment 25
2012-10-30 12:38:49 PDT
Created
attachment 171502
[details]
Patch
John Griggs
Comment 26
2012-10-30 12:39:56 PDT
Comment on
attachment 171502
[details]
Patch Moved test to LayoutTests/media so that it applies across platforms.
WebKit Review Bot
Comment 27
2012-10-30 17:17:57 PDT
Comment on
attachment 171502
[details]
Patch
Attachment 171502
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14662026
New failing tests: media/progress-events-generated-correctly.html
WebKit Review Bot
Comment 28
2012-10-30 18:16:46 PDT
Comment on
attachment 171502
[details]
Patch
Attachment 171502
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14662047
New failing tests: media/progress-events-generated-correctly.html
Build Bot
Comment 29
2012-10-30 20:02:18 PDT
Comment on
attachment 171502
[details]
Patch
Attachment 171502
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14685006
New failing tests: media/progress-events-generated-correctly.html
Eric Carlson
Comment 30
2012-10-31 06:56:34 PDT
If you are not able to figure out why the new test fails on some ports, you can skip the test and write bugs on those ports.
John Griggs
Comment 31
2012-10-31 07:09:04 PDT
So the new test appears to fail for mac and chromium-xvfb - which TestExpectations files should I be modifying to skip the test for these platforms? There appear to be several TestExpectations files for each of these platform, depending on the version and hardware platform...
John Griggs
Comment 32
2012-11-01 10:45:58 PDT
Created
attachment 171892
[details]
Patch
John Griggs
Comment 33
2012-11-01 10:47:10 PDT
Comment on
attachment 171892
[details]
Patch No need to review, just testing TestExpectations modifications to make sure they disable the new test on the correct platforms - I still have to add bug numbers, etc.
WebKit Review Bot
Comment 34
2012-11-01 10:51:14 PDT
Attachment 171892
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/medi..." exit_code: 1 LayoutTests/platform/chromium/TestExpectations:182: Test lacks BUG modifier. [test/expectations] [5] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
John Griggs
Comment 35
2012-11-01 13:58:07 PDT
Created
attachment 171922
[details]
Patch
John Griggs
Comment 36
2012-11-01 13:59:29 PDT
Comment on
attachment 171922
[details]
Patch Disabled new test on mac and chrome-linux platforms because the bots were failing.
Eric Carlson
Comment 37
2012-11-01 15:12:27 PDT
Comment on
attachment 171922
[details]
Patch This looks good to me. I am not setting the cq+ flag yet as the bots have not all processed the patch. Thanks for keeping at this John!
John Griggs
Comment 38
2012-11-02 07:27:05 PDT
Eric - Thanks for all your help! All green now, BTW 8^)
John Griggs
Comment 39
2012-11-06 12:27:23 PST
ping! Any chance of getting this added to the commit queue now that it has passed all the bots and been reviewed?
Rob Buis
Comment 40
2012-11-06 12:32:32 PST
(In reply to
comment #39
)
> ping! Any chance of getting this added to the commit queue now that it has passed all the bots and been reviewed?
Done!
Eric Carlson
Comment 41
2012-11-06 12:49:53 PST
(In reply to
comment #39
)
> ping! Any chance of getting this added to the commit queue now that it has passed all the bots and been reviewed?
Oops, sorry I forget to come back to this!
WebKit Review Bot
Comment 42
2012-11-06 13:09:01 PST
Comment on
attachment 171922
[details]
Patch Clearing flags on attachment: 171922 Committed
r133660
: <
http://trac.webkit.org/changeset/133660
>
WebKit Review Bot
Comment 43
2012-11-06 13:09:07 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug