Content topics that are Quicklinks to YouTube videos no longer play within the D2L content window. This includes existing topics, copied topics, or newly created topics.
On June 30, 2011, YouTube enabled x-frame options on all of their pages. They have set this option to use 'sameorigin' which prevents YouTube's pages from being displayed in a frame/iframe that is not from the same origin.
YouTube videos will play from Quicklinks that are set to open in a new window, or if you create the topics as new HTML docs and use the "Insert Stuff" button in the HTML editor to insert the code to be embedded for the video (available on YouTube.com).
If your course contains quicklinks to YouTube videos that won't play, you have two options:
- Edit the Quicklinks to open the videos in a new window. To do so, go to the 'Properties' tabbed page of the topic and check the box by "Preview/view the content topic in a new window or tab".
- If you want the videos to be viewed within the D2L Content frame, create the topics as new HTML documents and use the "Insert Stuff" button in the HTML editor to insert the embed code for the video (available on YouTube.com). If you choose the "YouTube" option, you will create a link in the HTML document that will open the YouTube video in a new window.
- Under recent versions of the D2L Learning Environment, if you chose the "YouTube" option, you created a link in the HTML document that opened the YouTube video in a new window.
- Under the current version of the D2L Learning Environment, using "Insert Stuff" and the "YouTube" option embeds the video directly in the HTML page. Older links can be remade to have the video display within the page.