Skip to content

feat: add video clip start and end times to course block data - #259

Closed
saraburns1 wants to merge 4 commits into
openedx:mainfrom
saraburns1:video-clip-offset
Closed

saraburns1 wants to merge 4 commits into
openedx:mainfrom
saraburns1:video-clip-offset

Conversation

@saraburns1

@saraburns1 saraburns1 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes openedx/openedx-aspects#373

Description

In studio, video blocks can be set to play a portion of a video. In Aspects we currently only have the actual start/time of the original video with no information on what slice of video is shown to the user. This means that in the dashboard, a timestamp can show as 10:00.00 when the video shown in the course is only 2 minutes long.

This adds video_start_time and video_end_time to xblock_data_json for video blocks in the course_blocks sink.

Corresponding pr: openedx/aspects-dbt#179

Merge checklist:

  • Commit messages use the correct Conventional Commits type
  • Documentation updated (not only docstrings) — n/a
  • Fixup commits are squashed away
  • Unit tests added/updated
  • Manual testing instructions provided
  • Noted any: Concerns, dependencies, migration issues, deadlines, tickets — existing courses need a re-dump (above) to pick up the new fields. No effect on reports until the aspects-dbt PR is merged.

🤖 Generated with Claude Code

Video blocks can be configured to play only a clip of the source video.
The player reports positions against the full source video but the
duration of only the clip, so Aspects needs the clip offsets to line
them up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/platform_plugin_aspects/sinks
  course_overview_sink.py 181-184, 213-215
Project Total  

This report was generated by python-coverage-comment-action

Comment thread src/platform_plugin_aspects/sinks/course_overview_sink.py Outdated
@saraburns1 saraburns1 closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In-Context: Unique vs. Repeat Views chart video duration doesn't always match duration of video in course

1 participant