Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add play function to Kino.Audio #457

Closed
relardev opened this issue Jul 15, 2024 · 2 comments
Closed

Add play function to Kino.Audio #457

relardev opened this issue Jul 15, 2024 · 2 comments

Comments

@relardev
Copy link
Contributor

I was looking for a way to notify myself when some event happens, tried implementing Kino.JS.Live that sends browser notification but didn't managed to make it work. Ended up using Kino.Audio with added functionality for playing the audio from the code:

      kino = Kino.Audio.new(...)
      // somewhere else, when some event happens
      Kino.Audio.play(kino)

I can open a PR if there is interest in adding this to Kino

@jonatanklosko
Copy link
Member

Sounds good, a PR is welcome :) In that case it would make sense to pair it with Kino.Audio.pause/1.

@jonatanklosko
Copy link
Member

Closed in #458.

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

No branches or pull requests

2 participants