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

Initial burst #3

Open
AlekseyMartynov opened this issue Dec 21, 2015 · 5 comments
Open

Initial burst #3

AlekseyMartynov opened this issue Dec 21, 2015 · 5 comments

Comments

@AlekseyMartynov
Copy link

In some applications (such as media streaming), it's desirable to send the beginning of a stream at a maximum rate to quickly fill client buffers. Similar to http://stackoverflow.com/a/32874710.

@daslicht
Copy link

Any solution for this ? I like to throttle an mp3 stream with init burst

@AlekseyMartynov

This comment has been minimized.

@daslicht
Copy link

Awesome ! Thank you very much I am going to try it !

@daslicht
Copy link

Works like a charm ! Thank you very much !

@1j01
Copy link

1j01 commented Oct 31, 2016

The above code links are now throttle.js and server.js

After converting that to CoffeeScript I looked at it and realized it probably can't work for me. I'm throttling an audio stream before encoding it so that it's realtime, before sending the encoded data to multiple clients. I can't just add an extra throttle per client because it can't undo the original throttling.

I managed to solve this with a simple initial burst from an array of chunks. I might make it into a module.

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

3 participants