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

Improve session integration #447

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

CarlosOlivo
Copy link
Contributor

  • Changed PLAYER_TIME_UPDATE_RATE from 1 second to 10 seconds
    Too much spam before, to the level of slowing down the server (at least in my case), also is the default in jellyfin-web
  • Stop active encoding if transcoding when playbacks ends

Originally 2 sessions are created because jellyfin-web creates a singleton per device (many users - one device), while jellyfin-sdk-kotlin proposes one user per session (one user - one device)

In the case of jellyfin-web, as it is a Singleton, once NativeShell is injected the deviceId should not change or it causes unexpected behaviors

So jellyfin-web and jellyfin-sdk-kotlin must come to an agreement on what to do in these cases.


Before

rs0PFEElVk

After

6XhogObBHn

@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Aug 14, 2021
Changed PLAYER_TIME_UPDATE_RATE from 1 second to 10 seconds
Stop active encoding if transcoding when playbacks ends
@Maxr1998 Maxr1998 force-pushed the fix-session-integration branch from 8c3dcca to 5e33634 Compare October 1, 2021 14:00
@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Oct 1, 2021
@Maxr1998 Maxr1998 changed the title Fix session integration with jellyfin-web Improve session integration Oct 1, 2021
@Maxr1998
Copy link
Member

Maxr1998 commented Oct 1, 2021

I've rebased your PR and reverted the device ID change for now, since it has undesired side-effects for multiple users on one device, I have an idea how to fix this in a separate PR however.

@Maxr1998 Maxr1998 added the exoplayer Related to the ExoPlayer integration label Oct 1, 2021
@Maxr1998 Maxr1998 enabled auto-merge (squash) October 1, 2021 14:06
@Maxr1998 Maxr1998 merged commit 3905718 into jellyfin:master Oct 1, 2021
@CarlosOlivo CarlosOlivo deleted the fix-session-integration branch October 1, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exoplayer Related to the ExoPlayer integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants