I'd like to present a video on my website, which is hosted on OneDrive for Bussiness / Sharepoint. The new Microsoft Stream for Sharepoint allows users to stream the video with a variety of resolution through CDN at portal.
How could I provide same features (different resolution and CDN) on my website (not Sharepoint, not intranet) just as the portal? Does MS Graph provides the very API?
Asked
Active
Viewed 304 times
0

BrandonStudio
- 97
- 7
1 Answers
0
Video for Microsoft Stream for SharePoint is just the normal Graph API file represented by driveItem
resource.
Through Graph API you can upload/download/delete/modify a video file.
For example, here are some kinds of things you can do with video file in Graph API:
- Upload: driveItem: createUploadSession - Microsoft Graph v1.0 | Microsoft Learn
- Delete: Delete a file or folder - Microsoft Graph v1.0 | Microsoft Learn
- Get view analytics: Get itemAnalytics - Microsoft Graph v1.0 | Microsoft Learn
- Get embed code: driveItem: preview - Microsoft Graph v1.0 | Microsoft Learn
- Move: Move a file or folder - Microsoft Graph v1.0 | Microsoft Learn
For the preview I don't see any option to specify resolution or CDN.
Some newer API features for videos (transcripts, thumbnails, chapters, etc.) are not public and documented
You can suggest a new idea for API to set a resolution and CDN on feedback portal

user2250152
- 14,658
- 4
- 33
- 57