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

[DualScreen Plugin]: Add Events (used by kava analytics) #131

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

JonathanTGold
Copy link
Contributor

@JonathanTGold JonathanTGold commented Mar 3, 2024

Add Events (used by kava analytics)

solves FEC-13736

Related PR:

kaltura/playkit-js-kava#156

src/dualscreen.tsx Outdated Show resolved Hide resolved

const HAS_DUAL_SCREEN_PLUGIN_OVERLAY = 'has-dual-screen-plugin-overlay';
const PRESETS = ['Playback', 'Live', 'Ads'];
const IMAGE_PLAYER_ID = 'imagePlayer';
const MAIN_PLAYER_ID = 'mainPlayer';

export class DualScreen extends BasePlugin<DualScreenConfig> implements IEngineDecoratorProvider {
private _layout: Layout;
private layout!: Layout;
Copy link
Collaborator

Choose a reason for hiding this comment

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

question = why do you need the "!", since layout can be null/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it can’t be null, it is assigned on the constructor, so it is never = null

src/dualscreen.tsx Show resolved Hide resolved
@JonathanTGold JonathanTGold merged commit 3a2b556 into master Mar 12, 2024
4 checks passed
@JonathanTGold JonathanTGold deleted the FEC-13736 branch March 12, 2024 10:56
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.

3 participants