JSON API - addVideo

addVideo

PREMIUM TRIAL / ADVANCED

Inserts a video into the PowerPoint presentation.

Note

You are reading the JSON API documentation. For the PHP API method please go to addVideo.

JSON data
Key Description
video Video path, Base64 string, or URL. Video formats: avi, mkv, mp4, wmv.
coordinateX EMUs (English Metric Unit).
coordinateY EMUs (English Metric Unit).
sizeX EMUs (English Metric Unit).
sizeY EMUs (English Metric Unit).
name Internal name. If not set, a random name is generated.
order Set the display order. Default after existing contents. 0 is the first order position. If the order position doesn't exist add after existing contents.
image
  • "image" image to be used as preview. Set a default one if not set. Image path, Base64 string, or URL.
  • "mime" forces a mime (image/jpg, image/jpeg, image/png, image/gif, image/bmp, image/webp).
mime Forces a mime (video/mp4, video/x-msvideo, video/x-ms-wmv, video/unknown).
descr Placeholder alt text (descr) value.
Code samples

Example #1

Release notes
  • phppptx 5.0:
    • new action.