spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Multiplexing

Open boardfish opened this issue 5 years ago • 2 comments

I've put together a deck with an older version of Spectacle that I've got kicking around. I'm presenting in about three weeks.

I should be able to share my screen, but multiplexing as is available in reveal.js would make for a good backup in case I don't have permission.

I don't have a particularly convincing case for the feature, that aside, but if it's of interest I'd love to see it happen.

boardfish avatar Apr 24 '20 14:04 boardfish

This would require to have a server component, which probably provides a web socket. Then there needs to be a main client (the speaker) which connects to the web socket by providing a secret speaker token. The main client would emit a slideChanged event. Each other client should just connect to the web socket and listen for the slideChanged events and act accordingly.

A slide changed event could just provide the slide number and the slide element number.

I have two questions for the maintainers:

  1. Is there some kind of plugin system for spectacle?
  2. Can you programmatically hook into the slide process and advance forwards or backwards by

If not, I would create a new component Multiplexer, which emits the events and processes received events. It should push the a new url based on the received slide and element to the history.

mikebarkmin avatar Jul 07 '20 12:07 mikebarkmin

Can you programmatically hook into the slide process and advance forwards or backwards

It's been a while since I've had a proper look, but I'm at least relatively sure that this is possible.

boardfish avatar Jul 08 '20 15:07 boardfish