Skip to content

Add automatic switch to next step in learning path, only if video #2512

Open
@ywarnier

Description

@ywarnier

Current behavior

If a learning path is made almost exclusively of videos, the course stops at the end of each video.

Expected behavior

Be able to "let it run", so that, at the end of each video, the next step is started automatically (after 10 seconds).

Steps to develop

  • consider video files as a new type of document (file, folder, video)
  • when adding a video (file) as a step in a learning path, register this step at lp_item.type = video
  • when showing this item, intercept the lp_view.php and add the corresponding video player tags (so it is not necessary to embed the video in an HTML page)
  • modify the media player with a callback to "switch_item()" of the learning path, so that the next item is automatically loaded 10 seconds after the end of the video
  • optional: add an option in the lp table to enable/disable auto-forward for videos

Extra: in the table of contents of the learning path, show the time [hh:mm:ss] of the video (register that as an extra_field of the document, maybe?)

Chamilo Version / Versión de Chamilo / Version de Chamilo

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions