Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new embed parameters for start_time, end_time, chapter_id, and watch_full_video #971

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

jdreetz
Copy link
Contributor

@jdreetz jdreetz commented Feb 29, 2024

This PR adds support for several new embed options:

  • start_time: what time (in seconds) to start video playback at.
  • end_time: what time (in seconds) playback should end. Enables "Segmented Playback" mode, where the UI is updated to present the video as if it's duration is that of the selected time range. Note: if start_time is not set, it defaults to 0 when end_time is set.
  • watch_full_video: when "Segmented Playback" is enabled, this setting controls visibility of the "Watch Full Video" Button. This button is enabled by default when Segmented Playback is enabled.
  • chapter_id: what chapter (by id) to start video playback at.

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.00%. Comparing base (be5bb1a) to head (739770b).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #971   +/-   ##
=======================================
  Coverage   72.00%   72.00%           
=======================================
  Files           7        7           
  Lines         575      575           
=======================================
  Hits          414      414           
  Misses        161      161           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jdreetz jdreetz changed the title add new OEmbed parameters for start_time, end_time, chapter_id, and w… Add new embed parameters for start_time, end_time, chapter_id, and watch_full_video Feb 29, 2024
@jdreetz jdreetz marked this pull request as ready for review March 1, 2024 21:29
@jdreetz jdreetz merged commit 42de476 into master Mar 6, 2024
3 checks passed
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.

2 participants