Re: [w3ctag/design-reviews] Support Video Chapter in MediaMetadata (Issue #952)

Hi @hober, 

Thanks for your feedback! 

Before starting implementation, we considered using the Web API to set chapter information via <track> elements (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track) just as you suggested. However, after discussing with our Media Session and YouTube teams, we identified several drawbacks to this approach: 
1, Lack of image support: There's no standardized way to include chapter images using this approach. 
2, Core player integration: It would require modifications to the core player code since it touches the media element. This would be inconsistent with how the rest of the system UI uses MediaSession, potentially leading to maintenance challenges and inconsistencies in the future. 
3, Awkward DOM usage: Representing structured chapter data directly within the DOM felt cumbersome and not ideal for this use case. 

And this proposed approach, adding a new ChapterInformation field to the current metadata, can help ensure we have a well defined API and maintain a simple implementation process for the websites. 

Let me know if you have any questions or concerns :]


-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/952#issuecomment-2121303220
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/952/2121303220@github.com>

Received on Monday, 20 May 2024 22:12:41 UTC