-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix(FEC-14000): Decoupling Plugins from Audio Player #205
base: master
Are you sure you want to change the base?
Conversation
src/transcript-plugin.tsx
Outdated
@@ -393,14 +399,18 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin { | |||
this._pluginState = PluginStates.CLOSED; | |||
}; | |||
|
|||
public isPluginAvailable = () => { | |||
public isEntrySupported(): boolean { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think isPluginAvailableForEntry is better descriptive name
@@ -410,8 +419,11 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin { | |||
if (Math.max(this._transcriptPanel, this._transcriptIcon) > 0) { | |||
this.sidePanelsManager?.remove(this._transcriptPanel); | |||
this.upperBarManager!.remove(this._transcriptIcon); | |||
// @ts-ignore | |||
this.player.getService('AudioPluginsManager').remove(this._audioPlayerIconId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can add a getter function for the service
@@ -271,11 +278,10 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin { | |||
}; | |||
|
|||
private _addTranscriptItem(): void { | |||
if (Math.max(this._transcriptPanel, this._transcriptIcon) > 0) { | |||
if (Math.max(this._transcriptPanel, this._transcriptIcon, this._audioPlayerIconId) > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed ?
Decoupling Plugins from Audio Player
Related pr:
kaltura/kaltura-player-js#805
kaltura/playkit-js-audio-player#27
kaltura/playkit-js-downloads#56
kaltura/playkit-js-share#50