RESOLVED FIXED160652
AX: Audio Description tracks are not labeled correctly, causing user confusion
https://bugs.webkit.org/show_bug.cgi?id=160652
Summary AX: Audio Description tracks are not labeled correctly, causing user confusion
James Craig
Reported 2016-08-07 22:50:24 PDT
Created attachment 285557 [details] screen shot of webkit video player, audio menu shows two options: "English" and "English" Summary: Audio Description tracks are not labeled correctly, causing user confusion Steps To Reproduce: 1. Load https://www.apple.com/media/us/iphone-6s/2016/af22bd64-5646-43f6-8b97-6085158f0cd7/tv-spots/shot-by-marc/iphone6s-shot-by-marc-cc-us-20160720_r848-9dwc.mov 2. Open the Audio menu. Results: See screen shot. The two tracks are both listed as simply "English." Expected: The second one should be "English [AD]" or "English w/ Audio Descriptions' Notes: Audio Descriptions are to blind users as captions are to deaf users. There is a media characteristic tag "public.accessibility.describes-video" on this audio track that identifies it as this type.
Attachments
screen shot of webkit video player, audio menu shows two options: "English" and "English" (17.57 KB, image/png)
2016-08-07 22:50 PDT, James Craig
no flags
Proposed patch. (13.61 KB, patch)
2016-08-10 12:02 PDT, Eric Carlson
buildbot: commit-queue-
Archive of layout-test-results from ews125 for ios-simulator-elcapitan-wk2 (699.86 KB, application/zip)
2016-08-10 13:00 PDT, Build Bot
no flags
Proposed patch. (16.48 KB, patch)
2016-08-10 13:40 PDT, Eric Carlson
graouts: review+
Patch for landing. (17.23 KB, patch)
2016-08-18 08:46 PDT, Eric Carlson
no flags
Radar WebKit Bug Importer
Comment 1 2016-08-07 22:50:39 PDT
Eric Carlson
Comment 2 2016-08-10 12:02:33 PDT
Created attachment 285740 [details] Proposed patch.
Build Bot
Comment 3 2016-08-10 13:00:07 PDT
Comment on attachment 285740 [details] Proposed patch. Attachment 285740 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1847400 New failing tests: media/video-controls-captions-trackmenu-hide-on-click.html media/video-controls-captions-trackmenu-localized.html media/video-controls-captions-trackmenu-sorted.html media/video-controls-captions-trackmenu.html
Build Bot
Comment 4 2016-08-10 13:00:10 PDT
Created attachment 285747 [details] Archive of layout-test-results from ews125 for ios-simulator-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-elcapitan-wk2 Platform: Mac OS X 10.11.5
Eric Carlson
Comment 5 2016-08-10 13:40:06 PDT
Created attachment 285754 [details] Proposed patch.
Antoine Quint
Comment 6 2016-08-11 06:34:00 PDT
Comment on attachment 285754 [details] Proposed patch. View in context: https://bugs.webkit.org/attachment.cgi?id=285754&action=review > Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:660 > + return audioDescriptionTrackSuffixText(displayName.toString()); Since having a description track is a special case, I would have expected the if statement above to check whether we have one and return the suffix text in that case and let the default be the general case. > LayoutTests/http/tests/media/hls/hls-accessiblity-describes-video-menu.html:47 > + window.setTimeout(runTestsWithVisibleMenu, 100); Usage of setTimeout is typically a warning to me. What is the 100ms delay for here? Are we waiting on some layout due to some async event being dispatched? Could we use nested rAF calls to determine this has happened?
James Craig
Comment 7 2016-08-17 23:53:55 PDT
Eric Carlson
Comment 8 2016-08-18 08:46:31 PDT
Created attachment 286369 [details] Patch for landing.
WebKit Commit Bot
Comment 9 2016-08-18 11:07:36 PDT
Comment on attachment 286369 [details] Patch for landing. Clearing flags on attachment: 286369 Committed r204601: <http://trac.webkit.org/changeset/204601>
WebKit Commit Bot
Comment 10 2016-08-18 11:07:41 PDT
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.