livepeer / studio

Livepeer Studio is your home for building, broadcasting, and publishing video on the open internet with the Livepeer Network. Effortlessly manage livestreams, video uploads, API keys, network usage, billing, and more.
https://livepeer.studio
MIT License
76 stars 33 forks source link

Use stream metadata request to detect when stream is ready #2306

Closed mjh1 closed 2 weeks ago

mjh1 commented 1 month ago

What does this pull request do? Explain your changes. (required)

Rather than wait for the playback call to finish we can improve the speed of this API by using the metadata call instead. We still make the playback call to ensure ingest ends up in the right region but the metadata endpoint will return a meta object once the stream is ready for playback, which only seems to take a second or two.

Specific updates (required)

How did you test each of these updates (required)

This was tested in staging: Logs from a test in staging

Screenshot 2024-09-12 at 13 20 30

Does this pull request close any open issues?

https://linear.app/livepeer/issue/PS-778 https://linear.app/livepeer/issue/PS-572

Screenshots (optional)

Checklist

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 17, 2024 10:58am