Closed camdendotlol closed 13 hours ago
Name | Link |
---|---|
Latest commit | 281a541e28287701d5555086a3e8bada0d597a59 |
Latest deploy log | https://app.netlify.com/sites/avannotate-staging/deploys/66eb352e88866400087fa0c3 |
Deploy Preview | https://deploy-preview-111--avannotate-staging.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Summary
getFileDuration
helper function that accepts a URL and attempts to find the duration of the audio/video using JS'sAudio
class (which, despite its name, works for video too and is a much simpler method to get duration than my originally proposedreact-player
solution)['mp3', 'mp4', 'ogg', 'm4a']
. This way, we aren't fetching constantly while the user is typing, and we aren't attempting to fetch stuff that we won't be able to get a duration from. This list can be expanded as needed.EventForm
that watches the file URLs in the form and maintains a mapping of URLs with durations and applies those durations to any matching AV fileVideo
https://github.com/user-attachments/assets/1d2b87d2-6e4b-4b82-a8f7-a48e744ccd93