✨Get embed code for video in SharePoint or OneDrive

Microsoft

As of this morning October 3, 2022 we rolled out the ability to get an embed code for a video uploaded to SharePoint, OneDrive, Teams, or Yammer. GCC coming in soon.

Embed menu where you can configure embed settings and copy the embed codeEmbed menu where you can configure embed settings and copy the embed code

 

From the ODB or SPO document library preview player: ... on action bar > Embed

Screenshot of ... menu in ODB and SPO preview player showing menu item to get embed code for a videoScreenshot of ... menu in ODB and SPO preview player showing menu item to get embed code for a video

 

From the Stream web app player page: Share > Embed code

Screenshot of Share menu in Stream web app player showing menu item to get embed code for a videoScreenshot of Share menu in Stream web app player showing menu item to get embed code for a video

 

Just make config changes to how you want the embed code to work, copy the iFrame embed code, and paste it on to your internal web page.

 

 

 

 

4 Replies
This is a Bidenesque BFD! Please do a Message Center post as this has been a feature many IT Admins have been waiting for.
I could not fully understand the embed access permissions. The statement (can't remember the source) is embedded video access permissions is determined by actual video file permissions on SP or OD. However "anyone with the link can view" (aka anyone links or anonymous access) permission is not respected by Stream embed feature...

It looks like this feature is not well-designed/thought...

Well, testing further I realize that anonymous access embed code works with default SharePoint Online configuration. However I still stand behind my argument this feature not being well-thought; when compliant device access SP setting turned on, viewing the embed webpart (configured with anonymous embed link) fails on all unmanaged devices while browsing the site. All SP site content is displayed except the anonymous stream video iframe...

Share links (Everyone in my organization or Anyone with the link) are different permissions than direct access permissions. The way embed codes in ODB/SPO for any file type (word, ppt, excel for the last several years) and now video files is the same, they work on "Direct access". Meaning the permission to the file or video needs to be applied without using a "Share link". So if you want everyone in your company to have view access you'd assign direct access to "Everyone Except External Users".

Unfortunately, there isn't a way to have public anonymous embed codes for any file in ODSP including videos today. This is something we are investigating for 2023.

I agree with you that the permissions in ODB/SPO are confusing and that the concepts of "Direct Access" and "Share Links" are hard for everyone to understand. We decided to start with video embed codes acting like all other file embed codes based on "Direct access" permissions.

I would encourage you to vote on or add new ideas to the ideas forum for public anonymous embed codes and/or for "anyone in the organization" embed codes that act more like share links do: https://aka.ms/StreamIdeas