-
Notifications
You must be signed in to change notification settings - Fork 559
ppt video add
zmworm edited this page Apr 8, 2026
·
53 revisions
Embed video and audio media on a slide.
Path: /slide[N] (parent)
| Property | Default | Description |
|---|---|---|
path |
(required) | Media file path |
name |
video / audio
|
Element name |
poster |
1x1 PNG | Poster/thumbnail image |
volume |
80 |
Playback volume (0-100) |
autoplay |
false |
Auto-play on slide show |
trimStart |
- | Trim start point (ms) |
trimEnd |
- | Trim end point (ms) |
x, y
|
defaults | Position (EMU or units) |
width, height
|
defaults | Size (EMU or units) |
# Add a video with autoplay
officecli add slides.pptx /slide[1] --type video --prop path=demo.mp4 --prop x=3cm --prop y=3cm --prop width=18cm --prop height=10cm --prop autoplay=true
# Add a video with poster
officecli add slides.pptx /slide[1] --type video --prop path=/tmp/clip.mp4 --prop poster=/tmp/thumb.png --prop name="Demo"
# Add background audio
officecli add slides.pptx /slide[1] --type audio --prop path=bgm.mp3 --prop volume=50
# Add trimmed audio
officecli add slides.pptx /slide[1] --type audio --prop path=/tmp/music.mp3 --prop trimStart=1000 --prop trimEnd=30000 --prop autoplay=trueBased on OfficeCLI v1.0.38