Share via


SP.Video.VideoSet.createVideo Method (sp.documentmanagement)

Creates a new VideoSet object.

SP.Video.VideoSet.createVideo(context)

Parameters

  • parentFolder
    The folder in which to create the new VideoSet object.

  • name
    The name of the new VideoSet object.

  • context
    The folder in which to create the new VideoSet object.

  • ctid
    The ID of the content type to be used for the new VideoSet object to be created. The ID must be for a content type that inherits from the base Video content type.

Return value

The URL to the new VideoSet object.

Exceptions

Exception Type

Condition

ArgumentNullException

The parentFolder parameter is null.

InvalidOperationException

A folder with the name already exists.

Remarks

This method creates an empty video set container object. It is used for embed code and for external link.