-
Notifications
You must be signed in to change notification settings - Fork 33
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
7447523
to
9b87d5a
Compare
9b87d5a
to
6781b39
Compare
There was a problem hiding this 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:
No description provided.