asciinema-player icon indicating copy to clipboard operation
asciinema-player copied to clipboard

Streaming

Open remexre opened this issue 5 years ago • 4 comments

Currently, it looks like the player requires the entirety of the screencast to be available; I'd like to use this for real-time streaming, though.

Would it be plausible possible to add a streaming API, to allow appending to the screencast loaded by an element? I'd likely be hooking this up to either an EventSource or WebSocket.

remexre avatar Dec 05 '19 16:12 remexre

Definitely! I'm working on the next generation of the player, and one of the goals there is to have easy streaming capability (with both EventSource and WebSocket options).

ku1ik avatar Jan 11 '20 11:01 ku1ik

There appears to be an EventSource Source implemented, is it possible to use this implementation instead of Recording, via the type option (which defaults to asciicast currently)?

neilmock avatar Jan 18 '20 20:01 neilmock

How is this going? I would be happy to help if it is simple enough.

I'll be receiving a handful of different events over websocket and am looking for a way to send the asciinema lines to the player.

TACIXAT avatar May 28 '20 05:05 TACIXAT

I came here after looking for something similar and seeing this blog post which describes streaming compatability of new file format with net at example

https://blog.asciinema.org/post/two-point-o/

mixmix avatar Apr 29 '21 18:04 mixmix