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

Handle the audio stream playback with a web worker in the browser #5

Open
fakufaku opened this issue Mar 17, 2017 · 0 comments
Open

Comments

@fakufaku
Copy link
Collaborator

Currently both the graphics and the audio are handled in the same thread in the browser. When there is a lot of audio streaming this could be a problem. We could create a web worker that takes care of getting the audio from the websocket, resample it and plays it back.

It the only communication needed with the main thread is:

  • set origin of audio stream (python code server or ws-audio)
  • play
  • stop

what needs to be decided is how to handle configuration changes

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

No branches or pull requests

1 participant