Preview video from IPFS, preserve-original checkbox#66
Closed
magent-cryptograss wants to merge 8 commits into
Closed
Preview video from IPFS, preserve-original checkbox#66magent-cryptograss wants to merge 8 commits into
magent-cryptograss wants to merge 8 commits into
Conversation
Play the video, pause at the desired start/end points, click "Set start" or "Set end" to capture the playback position. Values are stored as trim_start_seconds and trim_end_seconds in the draft YAML content block. These will be passed to Coconut (offset/duration) or ffmpeg (-ss/-to) during finalization.
…on_time - Move "File type override" into a collapsed "More settings" section - Reword blockheight section: "When did this happen?" with date picker first, block height as secondary option - Hide upload_blockheight display (server-side, no need to show it) - Pre-fill date from video creation_time metadata when available - Preserve creation_time through YAML round-trip
The local linear estimate (12s slots from merge genesis) drifts noticeably. Now all three date pickers (ReleaseDraft, DeliverVideo, DeliverBlueRailroad) call Etherscan's getblocknobytime API for the exact block. The local estimate still shows instantly as a placeholder while the API call is in flight.
The local linear estimate (12s slots from merge) was drifting ~11 days for recent blocks. Now all three pages fetch the actual block timestamp via eth_getBlockByNumber from publicnode.com RPC. Local estimate still shows instantly as placeholder while the RPC call is in flight.
Etherscan V1 API is deprecated and V2 requires an API key. Removed all Etherscan calls. Block-to-date display now shows a spinner and waits for the Ethereum RPC response instead of showing a wrong local estimate. Date-to-block still uses the local formula (close enough for day-level).
Rewrite initVideoPreview to check delivery-kid for preview transcoding status: if a 480p MP4 preview is ready on IPFS, play that instead of streaming the full original from staging. Polls every 10s if transcoding is in progress. Falls back to staging URL if no preview available. - Add preview status div and preserve-original checkbox to PHP - JS polls delivery-kid draft API for preview_mp4_cid - Add CSS for .rd-preview-status and .rd-preserve-label - Wire preserve_original checkbox into finalize request body
The renderGenericForm (used for type: other drafts from Special:UploadContent) was missing the video player, preview status, and trim controls that were only in renderVideoForm. Content drafts with video files now get the same preview/trim UI.
5 tasks
Contributor
Author
|
Superseded by #68 (rebased cleanly on current main) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
initVideoPreview()to load 480p MP4 preview from IPFS instead of streaming full original from stagingpreserve_originalin finalize request)Test plan