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

terminal playback controls #133

Closed
omaraboumrad opened this issue Dec 10, 2015 · 10 comments
Closed

terminal playback controls #133

omaraboumrad opened this issue Dec 10, 2015 · 10 comments
Milestone

Comments

@omaraboumrad
Copy link

omaraboumrad commented Dec 10, 2015

Hello,

It would be nice if asciinema play <file> supported some playback controls through intercepting keyboard commands, example but not limited to:

Ctrl+P Toggle pause/play at current play step.
Ctrl+H Move one step backwards
Ctrl+L Move one step forward

Given the local player blends in perfectly in the terminal, there's no need to show any information about these controls during the playback.

Use Case

If I'm running a presentation or a demo, I'd like to be able to control the playback instead of anticipating it during the recording time.

Thank you!

@omaraboumrad
Copy link
Author

Related: #97

@renatomefi
Copy link

I would also like to see this feature! :)

@cypa
Copy link

cypa commented Jan 28, 2017

this feature is much needed for security audit purposes also

@robertpeteuil
Copy link

It's been a year, so I thought I'd surface this request again.

While I'm interested in the original request, I'm especially interested in the "play/pause" feature. This would allow me to use asciinema in live presentations (where pausing is necessary for discussion or answering questions).

Feature Request Enhancements:

  • For the "live demo" scenario - mapping the "play/pause" action to a mouse button would be ideal

    • Most users are accustomed to using mouse-clicks to play/pause videos
    • Many presenters use use wireless mice for live presentations
  • Instead of "Move one step backward", I'd prefer "jump 5 back seconds"

    • Essentially like "instant replay" on a DVR
    • This is useful for anyone wanting to re-watch an event that just occurred in a recording

@kostaz
Copy link

kostaz commented Jul 19, 2017

Actually, the lack of play controls in terminal (pause, play, fast-forward, fast-backward)
in the only feature that prevents this app from becoming mainstream.
👍

@ku1ik
Copy link
Contributor

ku1ik commented Jul 19, 2017

Pause, play and fast-forward would be easy to add.

Rewinding on the other hand is impossible with the current (simple) implementation of asciinema play. This page nicely describes this problem and how IPBT solves it: https://www.chiark.greenend.org.uk/~sgtatham/ipbt/ (when reading replace ttyrec with asciinema and you'll get the picture).

@robertpeteuil
Copy link

Thanks for sharing this info. It makes the challenges of rewind very clear.

Simply adding play/pause would be a huge leap forward in usefulness.

@ku1ik ku1ik added this to the 2.0 milestone Nov 23, 2017
@ku1ik ku1ik closed this as completed in fb1e25d Nov 25, 2017
@ku1ik
Copy link
Contributor

ku1ik commented Nov 25, 2017

Toggling pause with space + stepping a frame at a time with period just landed in develop branch and will be released in 2.0 🙂

@robertpeteuil
Copy link

Awesome. Thanks all!

@omaraboumrad
Copy link
Author

Brilliant!

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

6 participants