dtinth / ttycast

Broadcast your tty to the world! Stream your live terminal session online. Powered by ttyrec, tty.js and Socket.IO
http://me.dt.in.th/page/ttycast
MIT License
429 stars 23 forks source link

fyi - ttyrec/play stream for nodejs #8

Closed jedi4ever closed 10 years ago

jedi4ever commented 10 years ago

Might be useful to replace the native requirement on ttyrec.

https://github.com/jedi4ever/ttyrec.js

dtinth commented 10 years ago

Cool. Actually, this application does not depend on ttyrec. It just forwards whatever was sent to it to a terminal emulator, then to the clients. ttyrec and ttyplay is just a way of getting raw terminal data into that app.

Can you check whether your implementation of ttyrec and ttyplay can be used in place of the native ones? If so, then I'll update the README that you can npm install -g ttyrec instead.

dtinth commented 10 years ago

I just tried out your ttyrec.js. It works perfectly as a drop-in replacement of the native ttyrec.

I'll update the README to state it.

jedi4ever commented 10 years ago

thx @dtinth for the faith :+1:

daixtr commented 10 years ago

hi, what changes and where do I look at or need to do so that in my server i have this /var/ttyrecs/*.tty and the web front-end shall have small android-like icons that corresponds to each .tty record. When the user click it, he can see the replay. When others click it, they can also see their own replay.

Unlike the current behaviour which is real-time. I'm referring to something similar to www.playterm.org and www.asciinema.org .. please advise me what direction to go to have something like that. Thanks.

On Sat, Jan 4, 2014 at 10:46 PM, Thai Pangsakulyanont < notifications@github.com> wrote:

Cool. Actually, this application does not depend on ttyrec. It just forwards whatever was sent to it to a terminal emulator, then to the clients. ttyrec and ttyplay is just a way of getting raw terminal data into that app.

Can you check whether your implementation of ttyrec and ttyplay can be used in place of the native ones? If so, then I'll update the README that you can npm install -g ttyrec instead.

— Reply to this email directly or view it on GitHubhttps://github.com/dtinth/ttycast/issues/8#issuecomment-31579761 .

dtinth commented 10 years ago

@daixtr Then you might be interested in another project, based on ttycast, called ttyreplay.

Here: https://github.com/ttyreplay/ttyreplay

However, instead of playing .tty files directly, they must be converted to .js file. Conversion will also produce smaller files, especially when gzipped.