Difference between revisions of "Creating a Video Playback Activity"
(Created page with "{{NeedsDemonstration}} ===Overview=== Within our Getting Started Package, you will find a Template folder. We have provided a template for the configuration file, which is us...") |
|||
Line 1: | Line 1: | ||
{{NeedsDemonstration}} | {{NeedsDemonstration}} | ||
==Overview== | |||
Within our Getting Started Package, you will find a Template folder. We have provided a template for the configuration file, which is used by the CLIO interface to set up the activity. We also include a content drafting template created in Microsoft Word that can aid collaboration when creating activities as part of a development team. | Within our Getting Started Package, you will find a Template folder. We have provided a template for the configuration file, which is used by the CLIO interface to set up the activity. We also include a content drafting template created in Microsoft Word that can aid collaboration when creating activities as part of a development team. | ||
==Options== | |||
===Content Configuration=== | |||
These are configuration settings for the video. | These are configuration settings for the video. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 21: | Line 21: | ||
| | | | ||
|} | |} | ||
==Creating the Activity== | |||
===Define the Activity=== | |||
All CLIO activities, regardless of their Activity Type, contain many of the same configuration settings. These are used to configure the screen and load the correct content. By defining this information, we can begin to draft more specific activity content. This information is included in both the drafting template and the coding template provided with each activity type. | |||
{{See|Defining a CLIO Activity}} | |||
====Drafting the Content==== | ====Drafting the Content==== | ||
{{Drafting Template|Activity Type=Video Playback|URL=https://cliomuseums.org/clio/templates/drafting/Video%20Playback.docx}}Open the provided Content Template for drafting the Video Playback activity. First, we must decide on the basic descriptive information for the activity, such as the title, description, preview image and theme. This information is required because it is used by the CLIO interface to properly display the activity. | {{Drafting Template|Activity Type=Video Playback|URL=https://cliomuseums.org/clio/templates/drafting/Video%20Playback.docx}}Open the provided Content Template for drafting the Video Playback activity. First, we must decide on the basic descriptive information for the activity, such as the title, description, preview image and theme. This information is required because it is used by the CLIO interface to properly display the activity. |
Revision as of 17:00, 26 April 2022
Overview
Within our Getting Started Package, you will find a Template folder. We have provided a template for the configuration file, which is used by the CLIO interface to set up the activity. We also include a content drafting template created in Microsoft Word that can aid collaboration when creating activities as part of a development team.
Options
Content Configuration
These are configuration settings for the video.
Property | Description | Expected Parameters | Examples |
---|---|---|---|
Video | The video to be played when this activity is opened. | MP4 file | |
IncludeAudio | Toggle audio playback and volume control. | "true" or "false" |
Creating the Activity
Define the Activity
All CLIO activities, regardless of their Activity Type, contain many of the same configuration settings. These are used to configure the screen and load the correct content. By defining this information, we can begin to draft more specific activity content. This information is included in both the drafting template and the coding template provided with each activity type.
Drafting the Content
Open the provided Content Template for drafting the Video Playback activity. First, we must decide on the basic descriptive information for the activity, such as the title, description, preview image and theme. This information is required because it is used by the CLIO interface to properly display the activity.
Next, we can start to write the content needed for the Video Playback activity type. This activity type will play an MP4 video and allow the user to control playback, including playing, pausing, navigating and changing the volume. The activity can also be configured to disable audio.
For this activity, all we need is the relative location to the MP4 video file we would like to play. We can include a title for the video, but it is not currently used. This activity can also be configured to disable the audio playback and hide the volume controls, which can be useful for infographic videos.
Coding the Activity
The next step will be to take the content that was created in the Content template and begin to migrate it into the Configuration template. We will need to open the provided Configuration Template for drafting the Video Playback activity. This can be done in a plain text editor, but for the purpose of this manual we will be using jsoneditoronline.org/.
The video is found labeled as ‘1’, underneath the Content object. When we open ‘1’, we can see that it has the same fields as we first created in our content draft. We can enter the relative location for our video into “Video” and our optional video title into “Title”. If we would like to disable the audio in our video and hide the playback controls, we can remove the checkmark from “IncludeAudio” to change it to false.
Once you are finished, you can download the finished JSON file by clicking ‘Save’ and then ‘Save to Disk’. This file can be copied to the Program’s @Activity folder, and the media can be copied to the Program’s @Media directory.