XML API - pdx:addOnlineVideo
- addBackgroundImage
- addFooter
- addHeader
- addLineNumbering
- addMacroFromDoc
- addPageBorders
- addProperties
- addSection
- createCharacterStyle
- createListStyle
- createParagraphStyle
- docxSettings
- importHeadersAndFooters
- importListStyle
- importStyles
- modifyPageLayout
- parseStyles
- removeFooters
- removeHeaders
- setBackgroundColor
- setDefaultFont
- setDocumentDefaultStyles
- setEncodeUTF8
- setLanguage
- setMarkAsFinal
- addBookmark
- addBreak
- addChart
- addComment
- addCrossReference
- addDateAndHour
- addEndnote
- addExternalFile
- addFootnote
- addFormElement
- addHeading
- addImage
- addLink
- addList
- addMathEquation
- addMergeField
- addOnlineVideo
- addPageNumber
- addShape
- addSimpleField
- addStructuredDocumentTag
- addTable
- addTableContents
- addTableFigures
- addText
- addTextBox
- addWordML
- embedHTML
- clearBlocks
- deleteBlock
- modifyInputFields
- processTemplate
- rawSearchAndReplace
- removeTemplateVariable
- replaceListVariable
- replacePlaceholderImage
- replaceTableVariable
- replaceVariableByExternalFile
- replaceVariableByHtml
- replaceVariableByText
- replaceVariableByWordFragment
- replaceVariableByWordML
- setTemplateSymbol
- setTemplateBlockSymbol
pdx:addOnlineVideo
Inserts an online video into your document.
Note
You are reading the XML API documentation. For the PHP API method please go to addOnlineVideo.
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