mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use PlayerEvent constant
This commit is contained in:
parent
459d0d7d9a
commit
11e4549b48
2 changed files with 5 additions and 3 deletions
|
@ -22,6 +22,7 @@ import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts';
|
|||
import { getItemBackdropImageUrl } from '../../utils/jellyfin-apiclient/backdropImage';
|
||||
|
||||
import { bindMediaSegmentManager } from 'apps/stable/features/playback/utils/mediaSegmentManager';
|
||||
import { PlayerEvent } from 'apps/stable/features/playback/constants/playerEvent';
|
||||
import { MediaError } from 'types/mediaError';
|
||||
import { getMediaError } from 'utils/mediaError';
|
||||
import { toApi } from 'utils/jellyfin-apiclient/compat';
|
||||
|
@ -939,7 +940,7 @@ export class PlaybackManager {
|
|||
player = player || self._currentPlayer;
|
||||
|
||||
if (mediaSegment && this._skipSegment) {
|
||||
Events.trigger(player, 'promptskip', [mediaSegment]);
|
||||
Events.trigger(player, PlayerEvent.PromptSkip, [mediaSegment]);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue