videosphere
    Preparing search index...

    Function getObjectUrl

    • Generate presigned download URL for file retrieval Used by distribution engine to read video files

      Parameters

      • key: string

        Object key in R2 bucket

      Returns Promise<string>

      Presigned GET URL that expires in 1 hour

      const url = await getObjectUrl("users/123/video.mp4");
      // Distribution engine can fetch from this URL
      const response = await fetch(url);