Since the question sets are an integral part of the interactive video, it is required that all the question sets are published before the content is published. This document talks about various approaches for achieving this publishing, and also changes to the ECAR generation to enable offline consumption of interactive videos.
This feature reuses the Question Sets, and these question sets are prompted to learners at the pre-decided interception points. So, it is necessary that the question sets used in a given video are published before the video can be published. Below are 2 approaches to achieve this
Option 1 - Single publish for question sets & video
In this option, the publishing of question sets will be deferred. The question sets and video content will be published in a single publish API call.
However, the suppression will need to happen based on a condition, and not a blanket change for all question sets.
visibility flag - question sets marked as visibility=Parent will not be published
category - question sets from selected categories will not be published
The publish job for the interactive video will need to be enhanced to first publish the question sets and then publish the video
Handling Publishing Failure
In this case, even if any one question set or the video itself fails to publish, the content will not publish (i.e. move to Failed state) and the error should be available in the content.
Impact on Player
Video player will need to be enhanced to use the ECAR that has the video and question sets in case of offline play.
Impact on App
There is no foreseeable impact on the mobile app
ECAR Structure
The ECAR archive will have multiple folders, each representing the video and the question sets in the video.
Other Remarks
The mobile team has seen challenges with manifest JSON beyond 2MB. So the combined manifest for the content + question sets will need to be lesser than 2MB. One way to achieve this is to put a limit on the number of questions that can be added to an interactive content.
Option 2 - Chained publishing
In this approach, the publishing of question sets will still be deferred. However instead of a single publish call for question sets and content, the publishing will happen sequentially using chaining of publish events pushed to the publish topic.
The publishing of the first question set will happen first, followed by the subsequent question set, and finally the content.
The publish event structure will be enhanced to add the details of the chain i.e. the sequence and the IDs of the content. As the chain progresses, each publish event will have the current state of the chain i.e. which are the preceding successful publishes, and which are the ones up next. Proposed changes to the publish event are below
There is no change to the ECAR generation, each publish event will work as today, to generate an ECAR for each question set and the content.
Handling Publishing Failure
There is no change, since if a question set or content fails to publish the publish error is already updated in the content. However, the UI side would need to be enhanced to give visibility of the failure to the creator.
Impact on App
For the interactive content, the app will need to download the Question set ECARs in addition to the content ECAR. The content IDs for the question sets used by a content are available in the new attributes in the content model
Impact on Player
There is no impact on player, since the Question Set ECARs are already downloaded
ECAR Structure
There is no change in ECAR structure, since each question set and the content will have independent ECARs.
0 Comments