I am trying to get all videos from SharePoint 2019 online video gallery and show them on a .aspx page using content editor web part.

First issue is I am getting more items in the array where I only have 1 video in gallery, and not getting few properties like VideoSetDefaultEncoding, ServerRelativeUrl etc.

When I run the below API in the browser I don't have these properties to make the correct URL of the video which I can use to show on my page:

_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('VideoGallery')/items("+ id +")/properties

Please help me out or please tell me if there is something wrong.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.