Skip to content

Comments

Add support for externally hosted WebGL content (no ZIP upload)#16

Open
hari715om wants to merge 1 commit intoeLearning-BS23:mainfrom
hari715om:feature/external-url-support
Open

Add support for externally hosted WebGL content (no ZIP upload)#16
hari715om wants to merge 1 commit intoeLearning-BS23:mainfrom
hari715om:feature/external-url-support

Conversation

@hari715om
Copy link

Summary

This PR adds support for embedding externally hosted Unity WebGL builds in the WebGL activity without requiring ZIP file uploads.

Teachers can now provide a public index.html URL for large WebGL builds that are already hosted on a web server or CDN.


Motivation

Uploading Unity WebGL ZIP archives (often 400MB+) through Moodle is slow, error-prone, and unnecessary when content is already hosted externally.

This enhancement allows:

  • Faster activity creation
  • Reduced server load
  • Better scalability for large WebGL projects

Key Changes

  • Added a new storage option: External WebGL URL
  • Added URL input field for externally hosted index.html
  • ZIP upload is conditionally required only for existing storage engines
  • Existing Azure, S3, and Moodle File API workflows are unchanged

Backward Compatibility

  • No changes to existing database schema
  • All existing storage engines continue to require ZIP uploads
  • External URL mode bypasses ZIP processing safely
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant