Media folder option

The media folder is where Blockly looks for assets like sounds (e.g. the delete sound effect) and images (e.g. the trash can). By default, these assets are downloaded from https://blockly-demo.appspot.com/static/media/.

If you want to customize any of these assets, such as using a different sound, you need to:

  1. Download all of Blockly's assets from GitHub and place them in your own media folder.
  2. Replace any assets you want to customize.
  3. Set the media property in the injection options to the URL of your media folder. This can be an absolute URL or a path relative to the current file.
  4. Deploy your media folder and all of its assets along with the rest of your application.