Menu

Keep a saved video trim when the pricing quote changes
📰

Keep a saved video trim when the pricing quote changes

DEV Community: frontend·Shimio Notes·about 10 hours ago
#M6GFBuG7
#devtofrontend#devto#dev#quote#selection
Reading 0:00
15s threshold

A clip editor has two different jobs. It records the passage someone selected, and it tells them whether that passage can be submitted now. Mixing those jobs makes a later quote change feel like lost work.

Store the interval separately

Save the start and end times as the selection. Keep the quote as a derived result of that interval, the current rate, and the balance. For example, a saved interval from 12 to 18 seconds still describes the same six seconds after a new quote arrives.

If the balance falls below the quote, keep the handles where the person put them. Show the shortfall next to the selection and let them decide whether to shorten it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.