wombat
wombat copied to clipboard
Youtube player is not working when wombat is configured to not run inside a Service Worker
We have an issue in warc2zim where when I configure wombat.js to not run inside a Service Worker (isSW: false
in call to _WBWombatInit
), then the Youtube player is not working anymore.
Since we are not using anymore a service worker with warc2zim v2, this is however the recommended setting, as discussed in https://github.com/webrecorder/wombat/issues/155#issuecomment-2183191941 and following comments.
The difference I see is that with SW mode, the player data is loaded from a URL like youtube.fuzzy.replayweb.page/youtubei/v1/player?videoId=hQXa6TkSeH0
while when SW is deactivated, the player data is loaded from a URL like www.youtube.com/youtubei/v1/player?prettyPrint=false
. And for sure, we have data in the WARC / ZIM at first URL but not at second one (taking into account the fuzzy rewriting of course).
Does it ring any bells to you? Is it a problem in warc2zim? Thank you in advance!