Add videos and content published on cloud applications to your courses, by embedding it in your Text & Image modules.
This feature is available to all customers.
Embedded content appears as part of the module, but without uploading a copy to LearnUpon.
Your external content must be published and shareable, subject to the access permissions set by your system administrator.
External content includes:
- documents and presentations hosted on cloud applications like Google Drive, SharePoint and Office365
- videos from sources like YouTube, Vimeo, or Wistia
Where to find embeddable media URLs
- if you see <iframe> tags in the embed code your video will work
- if you see <script> tags, the embedded video will not work
Some providers, such as YouTube, offer iFrame by default. Navigate to the content you want to share, and click Share > Embed underneath the item. This step generates the iFrame based code you can embed in Text & Image modules.
Some providers like Wistia offer both standard and fallback embed codes. In this case, you want to choose the fallback option, which is iFrame-based.
The following screenshot shows Google Drive's Publish to the web > Embed dialog for a link to a presentation.
See Use the rich text editor about adding external links and embedding media, using CK Editor.
Make media responsive to resize for different screens
By default, most embed codes generated for you are not responsive: they are set to a fixed height or width, and do not adjust to different screen sizes or mobile devices.
To ensure your content fits across all screen sizes, LearnUpon recommends a wrapper class to work with the embed code:
<iframe src="embed_url_for_video" width="100%" />
In this example, the embed_url_for_video comes from the video provider. The embed code for this video is:
<iframe width="560" height="315"
frameborder="0" allow="accelerometer; autoplay;
encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
Take the URL found in the src above, and put it into the wrapper class. The finished responsive embed code is:
<iframe src="https://www.youtube.com/embed/2wuN7IRLMxU" width="100%" />