Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull stream start improvements #2086

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Pull stream start improvements #2086

merged 1 commit into from
Mar 1, 2024

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Mar 1, 2024

No description provided.

@mjh1 mjh1 requested a review from a team as a code owner March 1, 2024 16:28
Copy link

vercel bot commented Mar 1, 2024

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 Mar 1, 2024 4:44pm

Copy link
Member

@victorges victorges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm anyway

@@ -661,12 +661,16 @@ export const triggerCatalystPullStart =
timeout: PULL_START_TIMEOUT,
maxRedirects: 10,
});
const body = await res.text();
const isHlsErr = body.includes("#EXT-X-ERROR: Stream open failed");
const errHeader = res.headers.get("error");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah nice

@thomshutt thomshutt merged commit a66c1e3 into master Mar 1, 2024
10 checks passed
@thomshutt thomshutt deleted the mh/pull-start branch March 1, 2024 17:05
Copy link
Member

@victorges victorges left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

if (waitActive === "true") {
stream = await pollWaitStreamActive(req, stream.id);
}
await triggerCatalystPullStart(stream, getHLSPlaybackUrl(ingest, stream));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so in practice we always wait for the stream to start, is that right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes if the manifest request has returned then the stream has started and ready for playback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants