Closed (outdated)
Project:
Video.js (HTML5 Video Player)
Version:
10.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Aug 2026 at 14:44 UTC
Updated:
28 Aug 2026 at 08:32 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
thomas.frobieterComment #3
thomas.frobieterComment #4
thomas.frobieterHaving taken a look at the Klaro code, I think the cause is that they explicitly ensure it's an iframe element (and Video.js doesn't pass data attributes from the x-player web component to the iframe).
This is just my initial finding and likely the wrong part of the code, but I think that's the general concept:
https://github.com/kiprotect/klaro/blob/db9f1aca906a392990c58c58475366a091012ea7/src/lib.js#L148
The iframe is nested inside the youtube-video elements shadow dom, without the required Klaro data attributes (although the Klaro JavaScript probably wouldn't have access to it anyway)
If Video.js doesn't let us set data attributes on the iframe itself, we might have a big problem here.
I've already tried adding slot="media" to a standard YouTube embed iframe element (similar to what we do with the poster image) to see if that would work, but unfortunately, it doesn't.
Comment #5
thomas.frobieterThis is also fixed with #3619293: [10.x] Klaro integration: Remote video playback is not starting when consent is given.