Contributing¶
Thank you for your interest in contributing to HLS Player for Moodle!
Please read our Code of Conduct before participating.
Ways to Contribute¶
- Bug reports — open a GitHub Issue describing what went wrong
- Feature requests — open a GitHub Issue describing the use case
- Pull requests — fix a bug or implement a feature
- Translations — add a new language file
Bug Reports¶
When reporting a bug, please include:
- Moodle version (e.g., 4.5.2)
- PHP version (e.g., 8.2.x)
- Browser and version
- Steps to reproduce the issue
- Expected vs. actual behaviour
- Any relevant error messages from Moodle's debug log
Pull Requests¶
-
Fork the repository and create a branch from
main: -
Follow Moodle's coding style:
- PHPDoc blocks on all public methods
- Snake_case for function and variable names
- 4-space indentation (no tabs)
-
Rebuild the AMD JavaScript bundle if you edit
Commit bothamd/src/player.js:amd/src/player.jsandamd/build/player.min.js. -
Run the CI checks locally if possible:
-
Submit your pull request against the
mainbranch with a clear description of the changes.
Translations¶
Language files live in lang/{lang}/hlsplayer.php. To add a new language:
- Copy
lang/en/hlsplayer.phptolang/{your-lang}/hlsplayer.php. - Translate the string values (keep the keys unchanged).
- Follow Moodle AMOS conventions for string formatting.
- Submit a pull request.
License¶
All contributions are licensed under GPL v3 or later, the same license as the project.