Packages

Play audio files in the browser! wav, mp3, ogg, or any other supported sound or music files

Current section

Files

Jump to
glor README.md
Raw

README.md

# Glór
[![Package Version](https://img.shields.io/hexpm/v/glor)](https://hex.pm/packages/glor)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/glor/)
A library for playing audio files in the browser!
```sh
gleam add glor@1
```
```gleam
import glor
pub fn main() -> Nil {
let player = glor.new("https://my-website.com/my-sound-effect.mp3")
glor.play(player)
}
```
Further documentation can be found at <https://hexdocs.pm/glor>.