-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 14 additions & 8 deletions
22
src/frontend/packages/lib_video/src/components/common/Player/videojs/id3Plugin/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/frontend/packages/lib_video/src/components/common/Player/videojs/id3Plugin/type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import videojs, { Player } from 'video.js'; | ||
import PluginType from 'video.js/dist/types/plugin'; | ||
|
||
const Plugin = videojs.getPlugin('plugin') as typeof PluginType; | ||
export class id3PluginClass extends Plugin { | ||
declare player: Player; | ||
|
||
constructor(player: Player, _options?: unknown) { | ||
super(player); | ||
} | ||
} | ||
|
||
export type id3PluginType = typeof id3PluginClass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters