SP.Video.VideoSet.uploadVideo Method (sp.documentmanagement)
Uploads the video file with the specified file name to the specified list.
SP.Video.VideoSet.uploadVideo(context)
Parameters
list
List to upload the file to.fileName
Name of the file, including the extension.file
File stream to be uploaded.overwriteIfExists
Overwrites the existing file, if true. If false, the existing file will not be updated.context
List to upload the file to.parentFolderPath
Optional server-relative folder URL for the folder within the list to upload the file to. If null, file will be uploaded to the root folder.
Return value
Absolute URL of the uploaded video file.
Exceptions
Exceptions
Exception Type |
Condition |
---|---|
The videoPath parameter is null. |
|
Video cannot be found at the specified path. |
Remarks
In order to get the full video experience, the video file should be uploaded to the document library that contains the video content type.