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

HLS direct play #4761

Merged
merged 3 commits into from
Sep 14, 2023
Merged

HLS direct play #4761

merged 3 commits into from
Sep 14, 2023

Conversation

dmitrylyzo
Copy link
Contributor

Changes

  • Add HLS direct play profile.
  • Fix HLS detection (don't rely on the file extension).

Issues
Fixes #4479

It works on 10.8 too.

@dmitrylyzo dmitrylyzo force-pushed the hls-direct-play branch 2 times, most recently from 85b0393 to e2e31e7 Compare August 31, 2023 09:56
@dmitrylyzo dmitrylyzo marked this pull request as ready for review August 31, 2023 09:57
@dmitrylyzo dmitrylyzo requested a review from a team as a code owner August 31, 2023 09:57
@dmitrylyzo dmitrylyzo added playback This PR or issue mainly concerns playback enhancement Improve existing functionality or small fixes labels Aug 31, 2023
@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Sep 11, 2023
@jellyfin-bot
Copy link
Collaborator

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

* @returns _true_ if the media source is an HLS stream, _false_ otherwise.
*/
export function isHls(mediaSource: MediaSourceInfo|null|undefined): boolean {
return (mediaSource?.TranscodingSubProtocol || mediaSource?.Container) === 'hls';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, jellyfin/jellyfin#10153 will change the type of TranscodingSubProtocol.

Copy link
Member

Choose a reason for hiding this comment

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

I think it will be fine as long as hls matches the enum value.

src/utils/mediaSource.ts Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Sep 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 38 Code Smells

No Coverage information No Coverage information
1.3% 1.3% Duplication

@thornbill thornbill merged commit 9435e31 into jellyfin:master Sep 14, 2023
19 checks passed
@dmitrylyzo dmitrylyzo deleted the hls-direct-play branch September 15, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality or small fixes playback This PR or issue mainly concerns playback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jellyfin is doing unnecessary HLS transcoding ?
3 participants