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

Document Stream Behavior Hints For Subtitles #249

Merged
merged 5 commits into from
Apr 4, 2024
Merged

Conversation

jaruba
Copy link
Member

@jaruba jaruba commented Nov 28, 2023

No description provided.

Copy link
Member

@elpiel elpiel left a 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

docs/api/responses/stream.md Outdated Show resolved Hide resolved
@@ -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)
Copy link

@rleroi rleroi Feb 18, 2024

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) 

Copy link

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 😄

@jaruba
Copy link
Member Author

jaruba commented Apr 4, 2024

i think we may finally have full support across apps now for this, merging

@jaruba jaruba merged commit 3155a6a into master Apr 4, 2024
2 checks passed
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.

6 participants