This is a proof of concept plugin for WordPress to display embeded WACZ files.
This plugin uses wordpress's shortcodes to embed a replayweb.page component into WordPress.
This plugin will
- enable
.wacz
and.warc
file uploads for WordPress - add ui.js from the CND to show replayweb.page components
- host a
/replay
folder withsw.js
pointing to the CND and map it correctly - reference wacz files in
media library
or using an external path.
remote_url
: Url to WACZ file that was not uploaded through WordPress media library
media_id
: WordPress media library's id
for WACZ file to display. The id
is assigned by WordPress when media is uploaded. You can get this number by opening the WACZ file in WordPresses Media Library
then looking at the address bar. You will see the end of the address ass id=49
. In this example the media_id is 49
.
height
: Height of element. Default is 400px
(may not work)
width
: Width of element. Default is 100%
(may not work)
Link to a WACZ file hosted somewhere else and set height to 100%
[wacz_lightbox_url remote_url="http://someurl.com/somefile.wacz" height="100%"]
Reference a WACZ file uploaded to WordPress and use the replay-with-info
embed mode
[wacz_lightbox_url media_id="56"]
Clone the repo, then place all files in folder called starling-replay-web-page
. Zip the starling-replay-web-page
folder so the top level of the ZIP only has this folder. Upload to WordPress's plugin section and activate.
When editing a page, add the Short Code
element at the desired location. Enter the short code as described above.