Presentation Mode
UniverSlidesUIPlugin adds presentation playback to the current deck. Playback moves through the slides in order, skips any slide marked as skipped, and applies the transition resolved for each move.
Start playback
const presentation = univerAPI.getActivePresentation()if (presentation) { await univerAPI.executeCommand('slide.operation.presentation.start', { unitId: presentation.getId(), fromBeginning: true, })}Pass fromBeginning: false to start from the currently active slide, or pass startSlideId to specify a visible slide as the starting point.
Navigate and stop
await univerAPI.executeCommand('slide.operation.presentation.next')await univerAPI.executeCommand('slide.operation.presentation.previous')await univerAPI.executeCommand('slide.operation.presentation.go-to-slide', { slideId: 'summary-slide',})await univerAPI.executeCommand('slide.operation.presentation.stop')Invoking the next command on the last visible slide stops playback. The previous command returns false on the first slide.
Browser behavior
The fullscreen and dual-screen presentation commands depend on browser APIs. The audience window must be opened directly in a user gesture; otherwise a popup blocker rejects it. A viewer-only Slides UI can still run presentation mode when the UI plugin is registered with editing disabled.
How is this guide?