VideoSet.GetEmbedCode method
Retrieves the embed code for the video at the specified path.
Namespace: Microsoft.SharePoint.Client.Video
Assembly: Microsoft.SharePoint.Client.DocumentManagement (in Microsoft.SharePoint.Client.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function GetEmbedCode ( _
context As ClientRuntimeContext, _
videoPath As String, _
properties As EmbedCodeConfiguration _
) As ClientResult(Of String)
'Usage
Dim context As ClientRuntimeContext
Dim videoPath As String
Dim properties As EmbedCodeConfiguration
Dim returnValue As ClientResult(Of String)
returnValue = VideoSet.GetEmbedCode(context, _
videoPath, properties)
public static ClientResult<string> GetEmbedCode(
ClientRuntimeContext context,
string videoPath,
EmbedCodeConfiguration properties
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
videoPath
Type: System.StringAbsolute or Relative URL for the video item or player page.
properties
Type: Microsoft.SharePoint.Client.Video.EmbedCodeConfigurationOptional properties to be used in configuring the embed code.
Return value
Type: Microsoft.SharePoint.Client.ClientResult<String>
String containing IFrame embed code for the video at the specified path.