XmlApi - pdx:addOnlineVideo

pdx:addOnlineVideo

Inserts an online video into your document.

Description

Element definition

This method allows you to insert an online video into your Word document.

Compatible from MS Word 2013, if older or other DOCX reader set as link.

Attributes and sub-elements

src

URL of the video to be added.

options

The specific options have the following keys and values:

Key Type Description
image Use a custom image as video preview, black color otherwise.
height In pixels, 315 as default.
hyperlink Use src if not set.
width In pixels, 560 as default.
Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code