addVideo
addVideo
BASIC / ADVANCED / PREMIUM
Inserts a video into the PowerPoint presentation.
Description
public addVideo($video, $position, $videoStyles = array(), $options = array())
This method inserts videos into the PowerPoint presentation.
Parameters
video
Video path. Video formats: avi, mkv, mp4, wmv.
position
Key | Type | Description |
---|---|---|
new | array |
A new position is generated.
|
videoStyles
Key | Type | Description |
---|---|---|
image | array |
|
mime | string | Forces a mime (video/mp4, video/x-msvideo, video/x-ms-wmv, video/unknown). |
Exceptions
Video doesn't exist.
Video format is not supported.
Image doesn't exist.
Image format is not supported.
Position not valid.
Release notes
- phppptx 1.0:
- new method.