是否可以使用 Office Common API 从加载项插入视频?

Is it possible to insert a video from an add-in using the Office Common API?

我正在使用 Office Common API 为 Office 应用程序(主要是 Word 和 PowerPoint)开发一个加载项,我需要能够将视频插入当前选择。以后我也想插入音频

目前,我已经能够使用setSelectedDataAsync(data, options, callback)方法插入图片。据我所知,支持视频的 Office.CoercionType 枚举中没有合适的强制转换类型,而且我没有运气省略 'options' 参数。可能可以使用 Open Office XML 格式,但似乎只在 Word 中支持。有什么方法可以使用 Common API for Office 在 Word 和 PowerPoint 中插入视频(可能还有音频剪辑)?

不,这是不可能的。在 Word 中您可以插入 OOXML 强制类型,但是 PPT 不支持。