Share via


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

  • videoPath
    Type: System.String

    Absolute or Relative URL for the video item or player page.

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
String containing IFrame embed code for the video at the specified path.

See also

Reference

VideoSet class

VideoSet members

Microsoft.SharePoint.Client.Video namespace