Adds a field formatter to play web archive files using ReplayWeb.page.
- Drupal core media module
- Website should use HTTPS (required for the service worker)
Download and enable module using file upload, Drush, or Composer
- Set the File field display of Web Archive media type to
ReplayWebPage formatter
on Structure › Media Types › Web Archive › Manage display - Add or modify a media field in a content type and enable Web Archive as a reference type
- Add media at Content › Media
- Upload web archive file and set Base URL if applicable
- Attach to content
- If the module is setup in Drupal's private filesystem and Apache's php-fpm. the
SetEnv ap_trust_cgilike_cl
need to be added in.htaccess
. Read more on this at here.
Some of the code in this repository is modified code based on Strawberry Field's implementation of a similar player.