OneDrive File Issues

How to Fix OneDrive Video Embed Opening in a New Tab

Steven ParkerSteven Parker Oct 19, 2026 868 views

Question details

The user wants to embed a OneDrive video in an external website's iframe so it plays inline, but clicking the video thumbnail forces it to open in a new browser tab.

Why Do Embedded OneDrive Videos Open in a New Tab on External Websites?
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Attempting to embed a OneDrive video on an external platform, such as a WordPress lesson page or external blog.
Observed behavior
The iframe displays the video thumbnail correctly, but clicking it opens and plays the video in a separate browser tab instead of playing it inside the iframe.
Before you start

Verify that your video file has the correct sharing permissions set in OneDrive, and confirm that your website builder supports standard HTML iframe embedding.

Solution 1Recommended

Use an Alternative Video Hosting Platform for External Embedding

Since Microsoft restricts inline playback on external domains by design, use a dedicated video hosting platform to achieve true iframe playback.

Microsoft implements strict security policies on OneDrive to prevent cross-site scripting attacks and protect sensitive user credentials. As a result, OneDrive videos embedded on external websites (like WordPress) will always open in a new tab.

To achieve true inline iframe playback on an external site, you must host your video on a service specifically designed for public video embedding.

1
Upload to a Supported Video Platform

Create a free account on a dedicated video platform such as YouTube or Vimeo, and upload your video file there.

2
Generate the Embed Code

Once the upload is complete, navigate to the video's sharing settings and copy the provided iframe embed code.

3
Paste into Your Website

Go to your WordPress lesson page or external website editor, add a custom HTML or Video block, and paste the embed code into the editor.

Use an Alternative Video Hosting Platform for External Embedding
Internal SharePoint Exception: If you are embedding the video within Microsoft services, such as a SharePoint Online site, the video will successfully play within the embedded page without opening a new tab.
Free Microsoft Office alternative

Looking for a Seamless Office Experience? Try WPS Office

While OneDrive imposes strict design restrictions on how media is shared and embedded externally, WPS Office provides a lightweight, highly compatible, and free alternative for managing your daily documents without heavy constraints.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
  2. 2. Install and Launch: Run the installation file and launch the application to easily access Writer, Spreadsheets, and Presentation.
  3. 3. Save and Share Freely: Create your documents and utilize WPS Cloud to easily share your files with external collaborators.
Fully compatible with Microsoft Office formats (Word, Excel, PowerPoint).Free, lightweight, and fast to install on Windows, Mac, and Linux.Built-in cloud storage for easy document sharing, editing, and collaboration.Familiar user interface for a seamless migration from Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why do OneDrive videos open in a new tab instead of playing inline?

Microsoft restricts inline iframe playback of OneDrive videos on external domains to protect user credentials and prevent cross-site scripting (XSS) attacks. Opening the video in a new tab is a deliberate security design.

Does embedding OneDrive videos work on SharePoint pages?

Yes. If you embed a OneDrive video within a Microsoft 365 service, such as a SharePoint Online site, the video will play directly within the page because it is within the same trusted environment.

Can I change OneDrive permissions to allow external iframe playback?

No. Even if you set the video sharing permissions to 'Anyone with the link can view', the external iframe will still force the video to open in a new browser tab due to the overarching security restrictions.

How can I request Microsoft to support inline video embedding on external sites?

You can submit a feature request directly to Microsoft by visiting their official Feedback Portal at feedbackportal.microsoft.com and explaining your use case.