fix: send valid video metadata hints when starting an upload
72 unmodified lines7374757677787977787980818283197 unmodified linesExpand all72 unmodified lines sizeBytes: video.blob.size, mimeType: video.mimeType, name, // the service verifies these values later, but can use them for early rejection. width: video.width, height: video.height, durationMs: video.duration ?? undefined, width: video.width || undefined, height: video.height || undefined, durationMs: video.duration !== null ? Math.round(video.duration) : undefined, }, signal, }), ),197 unmodified linesExpand all