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

Record/playback mode. #20

Open
rec opened this issue Feb 13, 2017 · 4 comments
Open

Record/playback mode. #20

rec opened this issue Feb 13, 2017 · 4 comments
Milestone

Comments

@rec
Copy link
Contributor

rec commented Feb 13, 2017

We need a way to create stand-alone demos that run this program on the web without having an instance of Bibliopixel.

Ideally, something we can just drop into a web page somehow...!

@adammhaile
Copy link
Member

Will discuss with @mwcz
His project Kimotion already has something like this. We'd just need a way to generate the data and save it to a file from BP, which should be simple. But yes, when you go to simpixel.io it should start up a recorded demo to make it more interesting. Maybe this can come in when we handle Issue #2

@mwcz
Copy link
Collaborator

mwcz commented Feb 13, 2017

With Kimotion, we have a command that starts up the server, but instead of opening a websocket server, it pipes the outgoing bytes into a raw binary file. Then Kimotion's recording parser loads up that recording and steps through it.

It was exceptionally easy because every Kimotion frame is the same length. With SimPixel, the client will need some way to know how long each frame is, since there's no temporal spacing between the frames when they come from a binary file. Perhaps a small header field in the configuration frame with the number of LEDs? I think that would be sufficient.

@adammhaile
Copy link
Member

Yeah, as with Kimotion, the frames are all the same length. The main things we need are length and framerate, as what comes from BiblioPixel is variable. I can easily write a data recorder driver that can store the data with a header. How hard do you think it would be to get the client side to read that file at a specific rate?

@adammhaile
Copy link
Member

@mwcz - I think you did some of this already? What do you need from BiblioPixel to make this happen. I'm ok with this being a v1.1 feature... really more for first load anyways.

@adammhaile adammhaile added this to the v1.1 milestone Mar 27, 2017
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