InforMedia Services (IMS)

Technology Instruction for St. Cloud State University

your q/s, our answers: embed video in D2L

Posted by Plamen Miltenoff on July 30, 2013

 

Qustion: Can I embed video into D2L discussion posts (ie. a youtube video)? questions and answers

Answer:

When trying to embed video into a D2L discussion, it breaks with a 500 error.
upon examination of the embed code, the protocol is missing from the source.

example:
<iframe width=”560″ height=”315″ src=”//www.youtube.com/embed/xtNhf0eA120?rel=0″ frameborder=”0″ allowfullscreen></iframe>  Note the src=”//www…..

SOLUTION: In order to successfully embed a video you’ll need to alter that bit of code to be http://www…..  or https://www….
Reported  this to the MnSCU D2L team, as the embed preview works.

One Response to “your q/s, our answers: embed video in D2L”

  1.   Plamen Miltenoff Says:

    Here is MnSCU addressing the same issue:
    Q: Why do I get an error when I insert a YouTube embed code in D2L?
    A: Youtube has revised the embed code it provides for sharing videos. The new embed code does not work properly when used in D2L, so we have a workaround. The simple fix is to add http: in front of the forward slashes in the embed code source URL. An alternative is to use the “old” embed code that YouTube provides.
    For screen shots and step-by-step instructions for workarounds, https://d2l.custhelp.com/app/answers/detail/a_id/1382/kw/1382

Leave a Reply



XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>