Thnx @wvengen for the information, I’ve made it work via a separate JSON file per crawl which includes the multiple WACZ files in the resources. The JSON file is set in the ‘source’ attribute which loads the entire crawl instead of the single WACZ.
BrowserTrixCloud supplies a JSON archive containing all the crawls in the collection. From this source I’ve created separate JSON files that only contain one crawl, this is done via a script that splits all the data maintaining the original resources data from the BrowserTrixCloud JSON.
JSON from BrowserTrix:
{
"id": (string) "[collectionId]",
"name": (string) "[collectionName]",
"oid": (string) "[collectionOid]",
"description": (string) "[collectionDescription]",
"modified": (string) "[collectionModifiedDate]",
"crawlCount": (int) [CollectionCrawlsCount],
"pageCount": (int) [CollectionCrawlsTotalPageCount],
"totalSize": (int) [CollectionCrawlsTotalSize],
"tags": (array) [],
"isPublic": (bool) true,
"resources": [
{
"name": (string) "[collectionOid]/[fileName].wacz",
"path": (string) "[filePath]",
"hash": (string) "[fileHash]",
"size": (int) [fileSize],
"crawlId": (string) "[crawlId 1]"
},
...multiple items...
{
"name": (string) "[collectionOid]/[fileName].wacz",
"path": (string) "[filePath]",
"hash": (string) "[fileHash]",
"size": (int) [fileSize],
"crawlId": (string) "[crawlId 2]"
}
]
}
JSON generated for single crawl:
{
"name": (string) "[collectionName]",
"description": (string) "[collectionDescription]",
"modified": (string) "[collectionModifiedDate]",
"crawlCount": (int) [CollectionCrawlsCount],
"tags": (array) [],
"resources": [
{
"name": (string) "[collectionOid]/[fileName].wacz",
"path": (string) "[filePath]",
"hash": (string) "[fileHash]",
"size": (int) [fileSize],
"crawlId": (string) "[crawlId 1]"
},
{
"name": (string) "[collectionOid]/[fileName].wacz",
"path": (string) "[filePath]",
"hash": (string) "[fileHash]",
"size": (int) [fileSize],
"crawlId": (string) "[crawlId 1]"
},
{
"name": (string) "[collectionOid]/[fileName].wacz",
"path": (string) "[filePath]",
"hash": (string) "[fileHash]",
"size": (int) [fileSize],
"crawlId": (string) "[crawlId 1]"
}
]
}
Hopefully this is helpful for anyone that is looking for loading multiple wacz’s into the <replay-web-page>
embed 