Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
Something went wrong. Try again.
761 B · 16 lines
TypeScript
at strict
1234567891011121314151617import type {Logger} from "@foxxmd/logging";import { REPORTED_PLAYER_STATUSES } from '../../../core/Atomic.ts';import type {PlayPlatformId} from '../../../core/Atomic.ts';import type {PlayerStateOptions} from "./AbstractPlayerState.ts";import { PositionalPlayerState } from "./PositionalPlayerState.ts";
export class PlexPlayerState extends PositionalPlayerState { constructor(logger: Logger, platformId: PlayPlatformId, opts?: PlayerStateOptions) { super(logger, platformId, {allowedDrift: 35000, rtTruth: true, ...(opts || {})}); this.gracefulEndBuffer = this.allowedDrift / 1000; }
protected isSessionStillPlaying(position: number): boolean { return this.reportedStatus === REPORTED_PLAYER_STATUSES.playing; }}