A Microsoft file hosting and synchronization service.
Dear ElmoPienaar,
Good day!!
I understand your concern and tested the behavior by embedding the video stored in the OneDrive in the SharePoint Online site where the embedded video plays in the same embedded page instead of opening it in the new tab, since you are having the problem with external website, I have searched and found that it is still not possible to embed OneDrive videos in an iframe on an external website. When you generate the embed code for a OneDrive video, it will always open in a separate browser tab when clicked.
This behavior is by design, as Microsoft has implemented this security feature to prevent cross-site scripting (XSS) attacks. When a user clicks on a OneDrive video link, it is expected to open in a separate tab to ensure that the user's credentials and sensitive information are not compromised.
Yes, it is still not possible to embed OneDrive videos in an iframe on an external website. When you generate the embed code for a OneDrive video, it will always open in a separate browser tab when clicked.
This behavior is by design, as Microsoft has implemented this security feature to prevent cross-site scripting (XSS) attacks. When a user clicks on a OneDrive video link, it is expected to open in a separate tab to ensure that the user's credentials and sensitive information are not compromised.
Alternatively, you can consider hosting the video on a different platform that allows embedding in iframes, such as YouTube or Vimeo, and then embedding the video on your WordPress lesson page.It would definitely be ideal if we can add this feature to SharePoint/OneDrive modern experience. Thank you for bringing this to our attention. You can send your feedback on our feedback web portal https://feedbackportal.microsoft.com/ . Our product Team is constantly checking the comments and feedbacks from our customer to improve our products.
Sorry for your inconvenience and hope you can understand!
Best Regards,