Skip to content

HLS: Add missing newline to end of session manifest. v6.0.143#4115

Merged
winlinvip merged 3 commits intoossrs:developfrom
Zlo:bugfix/hls-missing-newline
Jul 24, 2024
Merged

HLS: Add missing newline to end of session manifest. v6.0.143#4115
winlinvip merged 3 commits intoossrs:developfrom
Zlo:bugfix/hls-missing-newline

Conversation

@Zlo
Copy link
Copy Markdown
Contributor

@Zlo Zlo commented Jul 11, 2024

The session HLS manifest file lacks a terminating newline in the final line.
This may cause strict players to reject it.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 11, 2024
@Zlo Zlo force-pushed the bugfix/hls-missing-newline branch 4 times, most recently from 32eb3e3 to e782b8e Compare July 11, 2024 10:30
@Zlo Zlo force-pushed the bugfix/hls-missing-newline branch from e782b8e to 798c969 Compare July 11, 2024 11:33
@winlinvip
Copy link
Copy Markdown
Member

winlinvip commented Jul 24, 2024

Thank you for this PR! Is there any specification about the newline? As you know, some player might also reject it when got empty line.

@Zlo
Copy link
Copy Markdown
Contributor Author

Zlo commented Jul 24, 2024

Well, there is the common POSIX rule that a text file should contain lines which should end with a terminating newline (some tools will ignore the final line if it is not terminated) and there is the RFC stating HLS files are UTF-8 text files:

We do have embedded players which cannot play it without the newline and I have not come across any player yet that cannot play it when the newline is added, but that obviously isn't any proper proof.

Edit: Oh, actually the RFC mentions this in itself already:
Definition of a playlist, second alinea

@winlinvip
Copy link
Copy Markdown
Member

Make sense, thank you.

@winlinvip winlinvip changed the title HLS: Add missing newline to end of session manifest. HLS: Add missing newline to end of session manifest. v6.0.143 Jul 24, 2024
@winlinvip winlinvip added the RefinedByAI Refined by AI/GPT. label Jul 24, 2024
@winlinvip winlinvip merged commit f76be5f into ossrs:develop Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EnglishNative This issue is conveyed exclusively in English. RefinedByAI Refined by AI/GPT.

Development

Successfully merging this pull request may close these issues.

2 participants