Forum Discussion
✨Get embed code for video in SharePoint or OneDrive
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 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 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 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.
12 Replies
- elopez_sttCopper Contributor
Feature is utter garbage. Tried to embed video, and it "worked" even though the defaults are atrocious and you have to manually edit the iframe to make it 1920px by default. The most egregious bug however is that if you open your website in incognito or without cookies, the video asks for the user to sign in to view the video even though the first share link I generated is the anyone can access the file! Also the default share settings for anyone can access makes no sense. Why does it always default to anyone can edit? That's atrocious. It should always be anyone can view by default, and if someone wanted to share with edit access, they can do so if they please. Instead, everyone who wants to share a file publicly has to remember to always change the setting instead of just copying the link. Seriously, Microsoft's only redeeming quality is that it made Excel, which is the best spreadsheet app
- elopez_sttCopper Contributor
Feature is utter garbage. Tried to embed video, and it "worked" even though the defaults are atrocious and you have to manually edit the iframe to make it 1920px by default. The most egregious bug however is that if you open your website in incognito or without cookies, the video asks for the user to sign in to view the video even though the first share link I generated is the anyone can access the file! Also the default share settings for anyone can access makes no sense. Why does it always default to anyone can edit? That's atrocious. It should always be anyone can view by default, and if someone wanted to share with edit access, they can do so if they please. Instead, everyone who wants to share a file publicly has to remember to always change the setting instead of just copying the link. Seriously, Microsoft's only redeeming quality is that it made Excel, which is the best spreadsheet app.
- KhaledalbowaidaniCopper Contributor
Marc Mroz
Is there any way to hide the video control?- Marc Mroz
Microsoft
Khaledalbowaidani Can you explain more what you mean by hiding video control on embed?
- Philipp_on_the_ForumCopper Contributor
Hi,
is it correct that we cannot use the embedded option with a "anyone within my organization" authorization. Full public / external access is not required. But for everyone in the company is what we want.
If this is not possible, what would be possible workarounds with sharepoint/teams setting.
In our current setup, videos are stores in a teams channel / it's "native" sharepoint representation. These videos should be embedded visible for all employees.
- Umut GencCopper ContributorI 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...- Umut GencCopper Contributor
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 https://learn.microsoft.com/en-us/sharepoint/control-access-from-unmanaged-devices 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...
- Marc Mroz
Microsoft
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
- This is a Bidenesque BFD! Please do a Message Center post as this has been a feature many IT Admins have been waiting for.