Open
Bug 1893737
Opened 6 months ago
Updated 1 month ago
Dailymotion captions no longer appear on PiP window
Categories
(Toolkit :: Picture-in-Picture, defect, P3)
Toolkit
Picture-in-Picture
Tracking
()
NEW
People
(Reporter: kpatenio, Unassigned)
Details
STR:
- Open a Dailymotion video with captions. Ex. https://www.dailymotion.com/video/x86xb3b
- Enable captions on the video
- Open PiP window
Expected:
- PiP window should have captions shown on the video
Actual:
- There are no captions
Notes:
- We already have a Dailymotion wrapper, but the wrapper no longer works. I suspect that this has something to do with videos now being loaded in an iframe, and the video src url does not match what's found in the overrides. If that is the case, this is similar to Bug 1825105 and Bug 1890807.
Looking back, I think we can utilize a div.player div.subtitles
element in the page to read the subtitles text content. Doing so requires these changes:
- Updating the container element. Looks like we can modify the query to read a
div
with a classplayer
. The element is a parent of the video. - Updating the text node list to read the contents of a
div
with a classsubtitles
.
Other notes:
- The subtitles rendered on the PiP window should disappear if none are displayed on the original video. This includes whenever there's no text to render, or when cc is disabled.
You need to log in
before you can comment on or make changes to this bug.
Description
•