# Customizing Video Duration Display and Completion Criteria in Open edX

**URL:** <https://discuss.openedx.org/t/customizing-video-duration-display-and-completion-criteria-in-open-edx/13520>\
**Category:** Site Operations Help\
**Created:** [July 28, 2024, 5:40am UTC](https://discuss.openedx.org/t/customizing-video-duration-display-and-completion-criteria-in-open-edx/13520 "2024-07-28T05:40:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMRUTH\_anbu](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/amruth_anbu/32/6163_2.png) [@AMRUTH\_anbu](https://discuss.openedx.org/u/AMRUTH_anbu)\
**Post date:** [July 28, 2024, 5:40am UTC](https://discuss.openedx.org/t/customizing-video-duration-display-and-completion-criteria-in-open-edx/13520/1 "2024-07-28T05:40:10Z")

</div>

Hi all,

I’m looking to customize the video handling in Open edX. Currently, when a video is added as an HTML link, the total duration is not displayed, and the video is marked as complete as soon as it’s opened. I want to achieve the following:

1. Display the total duration of the video.
2. Mark the video as complete only after the entire video has been watched.

Could anyone suggest how to implement these customizations?

Thank you!

---

<div class="post-metadata">

**Author:** ![annesulpico](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/annesulpico/32/6497_2.png) [@annesulpico](https://discuss.openedx.org/u/annesulpico)\
**Post date:** [August 31, 2024, 1:42pm UTC](https://discuss.openedx.org/t/customizing-video-duration-display-and-completion-criteria-in-open-edx/13520/2 "2024-08-31T13:42:06Z")

</div>

Hi @AMRUTH_anbu!

Regarding your second question, videos inserted into HTML using iframes do not track completion.

However, if you use video component, you can configure the watch percentage before it’s marked as complete by adjusting the [`COMPLETION_VIDEO_COMPLETE_PERCENTAGE`](https://github.com/openedx/completion/blob/fa7ba000429d4f4478dbc99e39f32472bb5eebed/completion/settings/common.py#L40-L42) setting. The default value is 95%, but you can change it to 100% (e.g., `1.0`) if you want the video to be considered complete only after it has been watched in its entirety.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [November 29, 2024, 1:42pm UTC](https://discuss.openedx.org/t/customizing-video-duration-display-and-completion-criteria-in-open-edx/13520/3 "2024-11-29T13:42:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
