BeetRootAddin - sample code for Office displayDialog API
This project uses Office DisplayDialog API to play a YouTube video, and send messages between the parent Window and the Child window when the video is playing.
For details, please check out the Office UI Namespace (JavaScript API for Office) at https://dev.office.com/reference/add-ins/shared/officeui.