Video Components in OLX#
You can add video components to a course unit via the video/<video_name>.xml file.
Create the XML File for a Video Component#
To add a video component to your course, add it to the course XML tree as
follows. This is video/purpose_power_reach.xml in the olx_example_course.
<video
youtube="1.00:lVPPPpyUOR4"
url_name="purpose_power_reach"
display_name="The Purpose, Power and Reach of the Open edX® Platform"
edx_video_id=""
end_time="00:00:00"
html5_sources="[]"
start_time="00:00:00"
track=""
youtube_id_1_0="lVPPPpyUOR4"/>
Place an XML file in the video directory for each video component in your course.
The name of the XML file must match the value of the @url_name attribute of the
video element in the vertical XML file.
For example, the vertical XML file uses the following format.
<vertical display_name="Unit 1: Video">
<video url_name="purpose_power_reach"/>
</vertical>
You create the file video/purpose_power_reach.xml to define the video
component.
Video Component XML File Elements#
The root element of the XML file for the HTML component is file is video.
video Element Attributes#
Attribute |
Meaning |
|---|---|
|
Required. The value that is displayed to learners as the name of the
video component. If a |
|
The speed and 1.0 pairings for the YouTube video source (see Note below) |
|
The YouTube id for the video |
|
Whether learners can download the video track. |
|
Whether learners can download the video. |
|
The file path for the HTML5 version of the video. |
|
Whether learners can view the video captions. |
|
The HH:MM:SS value of when within the video playback should begin. Defaults to |
|
The HH:MM:SS value of when within the video playback should end. Defaults to |
|
TBD |
|
Only used on |
Note
For historical reasons, the youtube attribute requires a speed mapping. Since YouTube introduced the
native ability to speed up/slow down video circa 2014, the speed mapping is no longer required. However, the youtube
attribute still maps the YouTube id to the 1.0 speed as follows:
youtube="1.00:lVPPPpyUOR4"
source Element#
The optional source element contains the following attribute.
Attribute |
Meaning |
|---|---|
|
The file path for the video file. |
Example Video Component XML File#
The following example shows an XML file for a video component.
<video
youtube="1.00:lVPPPpyUOR4"
url_name="purpose_power_reach"
display_name="The Purpose, Power and Reach of the Open edX® Platform"
edx_video_id=""
end_time="00:00:00"
html5_sources="[]"
start_time="00:00:00"
track=""
youtube_id_1_0="lVPPPpyUOR4">
<source src="https://s3.amazonaws.com/edx-course-videos/mit-6002x/6002-Tutorial-00010_100.mov"/>
</video>
See also
What is Open Learning XML? (concept)
Manage Video Components (reference)
Example of an OLX Course (reference)
Getting Started with OLX (quickstart)
What is the OLX Course Structure? (reference)
Maintenance chart
Review Date |
Working Group Reviewer |
Release |
Test situation |