Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JonathanTGold
Copy link
Contributor

@@ -393,14 +399,18 @@ export class TranscriptPlugin extends KalturaPlayer.core.BasePlugin {
this._pluginState = PluginStates.CLOSED;
};

public isPluginAvailable = () => {
public isEntrySupported(): boolean {
Copy link
Contributor Author

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);
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants