SP.Video.VideoSet.getEmbedCode Method (sp.documentmanagement)
Retrieves the embed code for the video at the specified path.
SP.Video.VideoSet.getEmbedCode(context)
Parameters
videoPath
Absolute or Relative URL for the video item or player page.context
Absolute or Relative URL for the video item or player page.properties
Optional properties to be used in configuring the embed code.
Return value
String containing IFrame embed code for the video at the specified path.