2 ms·
Cool but please clamp the values to be within 0 and currentDuration. I'm getting an error that the duration that youtube sends me back is higher than your read
by intruder 10y ago
Cool but please clamp the values to be within 0 and currentDuration.
I'm getting an error that the duration that youtube sends me back is higher than your read out duration:
{ errors: { message: 'end(8s) > currentDuration(7.383s)' } }
- anonfunction 10y agoGood idea of just trimming to the end if the end value is greater than the video duration, I'll add that next week. As a quick hack since the youtube video duration is 7.383s, and you want to trim to the end just omit the end property.