The upload() function
upload() takes three arguments: segments, a manifest string, and options.
What happens internally
SegmentInput format
Verify playback
After uploading, verify the content plays back correctly using the Player:Authentication
Theauth callback is called twice:
- Key fetch: The uploader sends
Authorization: Bearer <token>when fetching the content key - Presign requests: The uploader sends the same header when requesting presigned URLs