Skip to content

Return VOD thumbs VTT URL when available #1947

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

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Return VOD thumbs VTT URL when available #1947

merged 2 commits into from
Nov 13, 2023

Conversation

mjh1
Copy link
Contributor

@mjh1 mjh1 commented Nov 1, 2023

No description provided.

@mjh1 mjh1 requested a review from a team as a code owner November 1, 2023 15:01
Copy link

vercel bot commented Nov 1, 2023

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 Nov 13, 2023 11:23am

Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

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

Added a comment. Also, the CI is failing, could you check?

method: "HEAD",
timeout: 5 * 1000,
};
let resp = await fetchWithTimeout(vttUrl, params);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need to make this HTTP call here? Can't you just return vttUrl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the vtt will not always be present, it's not switched on for all users yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tidied this up now to check the returned files on the asset

Copy link
Contributor

@leszko leszko left a comment

Choose a reason for hiding this comment

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

Looks good. One thing we could add is a unit test, somewhere here:

@mjh1 mjh1 merged commit cfc8e28 into master Nov 13, 2023
@mjh1 mjh1 deleted the mh/vod-thumb-url branch November 13, 2023 14:16
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.

2 participants