Presenting
With motionUiPlugin(), Present (F5) opens a full-screen show with the slides' transitions and animations; Presenter view (Alt+F5) also opens the presenter console in a second window; Rehearse timings records the time spent on each slide.
Keys
| Keys | Action |
|---|---|
| → ↓ Space Enter N PageDown, click | next build, then next slide (a click during an animation finishes it) |
| ← ↑ Backspace P PageUp, right-click | previous build, then the previous slide fully built |
| number, Enter · Home · End | go to a slide · first · last |
| B or . · W or , | black / white screen (any key returns) |
| Ctrl+L · Ctrl+P · Ctrl+I · Ctrl+E · Ctrl+A or Esc | laser · pen · highlighter · eraser · back to the arrow |
| E · Ctrl+M | erase the slide's ink · hide/show ink |
| Esc | end the show |
Clicking a shape that has a trigger plays its sequence instead of advancing.
Presenter view
The console shows the live slide (draw on it: ink and the laser appear on the audience screen), what the next click shows (the next build, or the next slide), the speaker notes (A−/A+), elapsed time (pause, restart) and the clock, "Slide 3 of 12 · 2 builds left", See all slides to jump, and black/white screen. It opens in a same-origin popup, so no route is needed; drag it to your laptop screen and leave the show on the projector. The popup opens in the click or key that starts the presenter view (the present.presenter command, the show's own button, Alt+F5), because browsers block popups opened later. reservePopup() does the same for a host that starts a show its own way: call it in the click, before the show mounts (a <SlideShow presenterView> mounted from the host's own Start button should call reservePopup() in that button's click). While the presenter view is open the show doesn't go full screen by itself: on a single screen it would cover the console, and browsers spend the click on the popup, so a full-screen request after it fails. The show's controls offer Full screen (a click of its own). Leaving full screen while the console is open keeps the show going and brings the button back; End show or Esc in the console end it. Without the presenter view, the show goes full screen and leaving it ends the show.
Your own panel
presenterPanel (on SlideShow, or motionUiPlugin({ presenterPanel })) puts the host's UI in the presenter view, as a tab beside the notes (presenterPanelLabel names it, default "More"): a class chat, who's in the room, a microphone switch. It renders through the same portal as the console, so your React context and state work in it; a component element that reads your own state stays live. Both tabs stay mounted (a draft message survives switching), and keys pressed in the panel stay yours: typing, Space on its buttons, Esc never move or end the show.
The popup is a document of its own, so your styles don't reach it by themselves: presenterStyles: 'copy' clones the page's stylesheets (<link rel="stylesheet"> and <style>, Tailwind's included) and the classes and data-* attributes of <html> (a dark theme) when the view opens; an array of strings adds that CSS instead. Styles added to the page later aren't copied. onPresenterViewChange(open) tells you when the view opens and closes.
<SlideShow presentation={deck} layout={{ measurer }} presenterView onEnd={close}
presenterPanel={<ClassPanel />} presenterPanelLabel="Class" presenterStyles="copy"
onPresenterViewChange={(open) => setConsoleOpen(open)} />Audience windows
Windows sync over a BroadcastChannel: state (slide, builds, triggers, blank screen), ink and the laser. A window in another tab joins with <AudienceWindow channel={name} layout={{ measurer }} />; it asks for the deck and its media over the channel, so it needs no access to the file. Give the plugin audienceUrl: (channel) => '/show?audience=' + channel and the show gets an Audience window button. SlideShow (and motionUiPlugin) accept resolveSrcs, the batch resolver for pictures (see Pictures, media and fonts); the presenter view and audience windows load pictures through it. Speaker notes are not sent to audience windows unless the host passes shareNotesWithAudience. Each window runs its own clock-driven ShowController; the newest state wins, so either can drive.
Followers on other devices
BroadcastChannel reaches windows of the same browser profile only. For an audience on its own devices (students following a lecture), give the show a host transport, a ShowTransport (post, on) over your own link (a WebSocket your server relays, with its own sign-in and rules for who may join): SlideShow's transport (or a factory given the channel name; motionUiPlugin({ transport }) takes the factory), and AudienceWindow's transport. Messages are plain JSON; a relay may echo a window's own messages back. Over a host transport the presenter accepts only joins: no other window can move, draw on or end the show (whatever it posts). Your relay should still forward only the presenter's messages to followers.
- Over a host transport a deck carries no media bytes and no speaker notes: followers load pictures and media through their own
images,resolveSrcorresolveSrcs,media:srcs included. <AudienceWindow follow>only receives: it posts its join (hello) and nothing else, so its keys and clicks never move the show. Going to another slide there browses on its own; Back to presenter returns to the live slide and follows again (useFollowfor your own window).- Joins are answered together: the first
helloat once, the ones within the next 250 ms (JOIN_WINDOW_MS) with one reply (answerJoins). The presenter also posts its deck when it starts, so a relay can keep the show withshowCache()(takeeach message from the presenter,reply()to a joining follower) and answer joins itself. - Ink streams while it is drawn: a stroke's points go out as they come, coalesced to one
strokemessage per ~33 ms (STROKE_SEND_MS) carrying only the new points; pen-up sends the kept stroke (ink). The laser is sent once a frame between windows of the browser, ~30 times a second over a host transport. In a recorded show, the zoom and the spotlight (view) and text typed live (live) follow at ~30 Hz too.
Ink, timings
Ink is not saved by default. When the show ends with ink on the slides, the plugin asks whether to keep it: kept strokes become freeform shapes (show.keepInk). After Rehearse timings it offers to keep the times as each slide's "advance after" (show.applyTimings), which the show then honours (ShowController.tick).
Build your own
import { SlideShow } from '@nextgensoftwares/folio-plugin-slides-motion';
<SlideShow presentation={deck} layout={{ measurer }} images={load} presenterView onEnd={({ last, ink }) => close(last)} />or drive a ShowController from folio-slides-motion and draw it yourself (SlideStage, AudienceView, PresenterConsole are the pieces).