[Webkit-unassigned] [Bug 211230] New: Media controls tracks menu shows "Auto" selected instead of track selected via the JS API
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 30 06:17:41 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=211230
Bug ID: 211230
Summary: Media controls tracks menu shows "Auto" selected
instead of track selected via the JS API
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Media
Assignee: webkit-unassigned at lists.webkit.org
Reporter: graouts at webkit.org
Created attachment 398051
--> https://bugs.webkit.org/attachment.cgi?id=398051&action=review
Test
(this is a report from a problem originally reported by aashraya on the WebKit Slack at https://webkit.slack.com/archives/CU5LWFM28/p1588225198051000)
Consider this simple test (also attached):
<body>
<video autoplay controls src="https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/hls.m3u8" style="width: 800px"></video>
<script>
document.querySelector('video').addEventListener("play", e => e.target.textTracks[2].mode = "showing");
</script>
</body>
When the video starts playing the French caption is on, which is as expected. However, when showing the captions menu, the "Auto" item is selected.
Debugging a bit in the media controls code, the problem is that when `TextTracksSupport.tracksPanelIsTrackInSectionSelected()` is called to populate individual rows under the "Subtitles" menu, the MediaControlsHost has its `captionDisplayMode` property set to `automatic`. As such, I think the media controls code is doing what is expected and there is a problem in the media engine reporting the wrong value through MediaControlsHost.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200430/b168eab2/attachment.htm>
More information about the webkit-unassigned
mailing list