Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for MediaSource requests #329

Closed
benoit74 opened this issue Jun 24, 2024 · 2 comments
Closed

Add support for MediaSource requests #329

benoit74 opened this issue Jun 24, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@benoit74
Copy link
Collaborator

openzim/zimit#323 has shown that youtube player has been updated to use new kind of requests for video content.

For now, a fix is implemented in wabac.js (and embedded in Browsertrix crawler in our case) to force Youtube player to fallback to previous requesting mode.

We however have no idea how long this workaround will be maintained by Youtube, and we might well need a way to properly handle the new requesting mode.

If I understood correctly, the component doing the requests is in fact not specific to Youtube but it is simply the MediaSource API, now supported by major browsers.

We hence have:

  • many video players (Vimeo, ...) which will probably soon (or already have) transition to MediaSource API to request video content
  • no way to properly handle the MediaSource requests in warc2zim / libzim / ...

This is a medium term issue but a very concerning one.

@benoit74 benoit74 added enhancement New feature or request question Further information is requested labels Jun 24, 2024
@benoit74 benoit74 added this to the 2.2.0 milestone Jun 24, 2024
@ikreymer
Copy link
Collaborator

The way this is handled more generally in wabac.js is with DASH and HLS manifest rewriting, those are existing standards for video streaming, and have been in use for many years. This is a good fallback, but some platforms YouTube and Vimeo, don't quite use the standard format, and specifying stream chunks in other ways. Capturing and replaying content with MediaSource is already possible/happening, its just less predictable and often requires additional work.

@benoit74
Copy link
Collaborator Author

Thank you for these details! Closing this then since it looks we might have probably little to do in warc2zim for now

@benoit74 benoit74 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@benoit74 benoit74 removed this from the 2.2.0 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants