Skip to content

Share video preview and trim across all draft types#69

Merged
jMyles merged 1 commit intocryptograss:productionfrom
magent-cryptograss:preview-transcoding-v3
Mar 25, 2026
Merged

Share video preview and trim across all draft types#69
jMyles merged 1 commit intocryptograss:productionfrom
magent-cryptograss:preview-transcoding-v3

Conversation

@magent-cryptograss
Copy link
Copy Markdown
Contributor

Summary

  • Extracts renderVideoPreviewAndTrim() as a shared PHP method used by both renderGenericForm (type:other) and renderVideoForm (type:video)
  • Moves trim serialization out of the video-only JS save block so trim values are saved for all draft types that contain video files
  • Adds id='rd-hls-info' to the HLS info paragraph for JS updates

Previously, uploading video through Special:UploadContent (which creates type: other drafts) would show no video preview or trim controls — only type: video drafts had them. Now both form types get the same preview player, trim controls, and trim serialization.

This is a clean rebase onto production (replacing PR #68 which had conflicts).

Test plan

  • Visit a type: other ReleaseDraft with a video file — video preview and trim controls should appear
  • Visit a type: video ReleaseDraft — same behavior as before (no regression)
  • Set trim points and save — trim values should persist in YAML for both draft types
  • Finalize with trim values — trim_start_seconds/trim_end_seconds sent to delivery-kid

Extract renderVideoPreviewAndTrim() as a shared method so that
type:other drafts (from Special:UploadContent) get the same video
preview player and trim controls that type:video drafts already had.

Move trim serialization out of the video-only save block in JS so
trim values are saved for all draft types with video files.
@jMyles jMyles merged commit b4f4320 into cryptograss:production Mar 25, 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.

2 participants