mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #4401 from thornbill/add-plugin-types
Add plugin types
This commit is contained in:
commit
0cec50c6aa
19 changed files with 53 additions and 21 deletions
|
@ -5,8 +5,9 @@ import SyncPlay from './core';
|
|||
import SyncPlayNoActivePlayer from './ui/players/NoActivePlayer';
|
||||
import SyncPlayHtmlVideoPlayer from './ui/players/HtmlVideoPlayer';
|
||||
import SyncPlayHtmlAudioPlayer from './ui/players/HtmlAudioPlayer';
|
||||
import { Plugin, PluginType } from '../../types/plugin';
|
||||
|
||||
class SyncPlayPlugin {
|
||||
class SyncPlayPlugin implements Plugin {
|
||||
name: string;
|
||||
id: string;
|
||||
type: string;
|
||||
|
@ -17,7 +18,7 @@ class SyncPlayPlugin {
|
|||
this.id = 'syncplay';
|
||||
// NOTE: This should probably be a "mediaplayer" so the playback manager can handle playback logic, but
|
||||
// SyncPlay needs refactored so it does not have an independent playback manager.
|
||||
this.type = 'syncplay';
|
||||
this.type = PluginType.SyncPlay;
|
||||
this.priority = 1;
|
||||
|
||||
this.init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue