Skip to content

Commit 269f3a8

Browse files
committed
Add support for large file handling to h5p.
1 parent ddf505d commit 269f3a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/hashi/src/H5P/H5PRunner.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,10 @@ export default class H5PRunner {
137137
// and for logging xAPI statements about the content.
138138
this.contentNamespace = CONTENT_ID;
139139
const start = performance.now();
140+
const largeFileUrlGenerator = filePath => `${this.zipcontentUrl}/${filePath}`;
140141
// First load the full H5P file
141142
// Store the zip locally for later reference
142-
this.zip = new ZipFile(this.filepath);
143+
this.zip = new ZipFile(this.filepath, { largeFileUrlGenerator });
143144
// Recurse all the package dependencies
144145
return this.recurseDependencies('h5p.json', true).then(() => {
145146
// Once we have found all the dependencies, we call this

0 commit comments

Comments
 (0)