-
Notifications
You must be signed in to change notification settings - Fork 180
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
Document Stream Behavior Hints For Subtitles #249
Conversation
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.
LGTM, only 1 question regarding the videoSize
@@ -89,6 +91,12 @@ function getRouter({ manifest , get }) { | |||
|
|||
res.setHeader('Content-Type', 'application/json; charset=utf-8') | |||
|
|||
if (!warned.filename && resource === 'stream' && ((resp || {}).streams || []).length) |
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.
Could be a bit cleaner, e.g.
const hasStreams = !!((resp || {}).streams || []).length
const doesNotHaveFileName = resp.streams.find(stream => stream && stream.url && !(stream.behaviorHints || {}).filename)
if (!warned.filename && resource === 'stream' && hasStreams && doesNotHaveFileName)
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.
Or a separate warnAboutEmptyFilename()
function with early returns 😄
Co-authored-by: Tim <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: Tim <[email protected]>
i think we may finally have full support across apps now for this, merging |
No description provided.