Open Bug 1962040 Opened 1 year ago Updated 26 days ago

PiP captions do not appear on dr.dk

Categories

(Toolkit :: Picture-in-Picture, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox139 --- affected

People

(Reporter: bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

Blocks: 1765604
Severity: -- → N/A
Priority: -- → P3

I've investigated this issue and confirmed that DRTV uses Video.js to display subtitles.

The player renders Danish subtitles inside .vjs-text-track-display, with individual cues using .vjs-text-track-cue.

The video element exposes no native text tracks (video.textTracks.length === 0).

I implemented a JavaScript proof of concept using MutationObserver to read the subtitle elements and mirror their text into a native TextTrack with video.addTextTrack() and VTTCue.

This works: Danish subtitles are now displayed correctly in Firefox Picture-in-Picture.

Firefox already has a site-specific Video.js wrapper (videojsWrapper.js). I propose testing whether registering www.dr.dk in picture_in_picture_overrides.js using this existing wrapper resolves the issue without additional changes.

I'd like to contribute the patch for this bug.

You need to log in before you can comment on or make changes to this bug.