Retrieving thumbnails using Video REST API
Published May 01 2019 04:07 PM 1,643 Views
First published on TECHNET on Nov 17, 2017
This post is a contribution from Vitaly Lyamin, an engineer with the SharePoint Developer Support team

The Video REST API provides an ability to discover and interact with videos. We’ve seen a number of issues retrieving thumbnails where the “ThumbnailURL” endpoint returns an endpoint (e.g. /pVid/video.mp4.PNG?VideoPreview=1) that is not suitable for use with an AAD app access token and is only accessible via cookie-based authentication (passive or active). Fortunately, there are a few solutions for this.

Solution 1

The Video REST API “ThumbnailStream” endpoint can be used with and without the width (in pixels) parameter.



Solution 2

The “GetPreview.ashx” handler can also be used with several different inputs (simple example below).



Non-MS Resources:

Version history
Last update:
‎Aug 27 2020 03:37 PM
Updated by: