Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This wiki explains how to use public & external videos(Google Drive, Youtube & local etc.,) in ECML content.

Background:

...

Currently, the creator can add a video into an ECML content by adding a Youtube URL/Google Drive URL.

...

Both Youtube and Google Drive videos become a drawback to access the content offline on the web.

Problem Statement:

  1. If public & external video removed from the source it is getting removed from the content as well. (ECML content is still referring the external source so it is not playable).

  2. Support to add local videos to ECML.

Key Design Problems:

  • Create a video as an asset

  • Create a streaming URL for videos

  • Google drive URL asset when we are creating

  • Backward compatibility

  • Migration

Design:

Solution 1: Video as an asset

To add an image into ECML content we should create an asset of type image (image asset). All the image assets are part of the Sunbird installation infra Blob Storage so, they are always available and the Editor enables the creators to reuse existing images.

Similarly, if we should create any public video (local, youtube, google-drive etc,.) as an asset of type video (video asset) and enable the creator to browse and add it to ECML content. With this, all the videos will be available in the Sunbird installation infra.

...

Blob Storage

...

Below are the two backdrops drawbacks by following this approach.

...

  1. Added asset attribute in the org.ekstep.video tag

  2. Video renderer will play video based on the media tag’s attribute src/ streamingUrl

...