Skip to content

Commit

Permalink
append playkit-video-filter element
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura committed Aug 21, 2024
1 parent 14d9cb6 commit 3af730d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ const CONTAINER_CLASS_NAME: string = 'playkit-container';
*/
const POSTER_CLASS_NAME: string = 'playkit-poster';

/**
/**
* The video filter class name.
* @type {string}
* @const
*/
const VIDEO_FILTER_CLASS_NAME: string = 'playkit-video-filter';

/**
* The engine class name.
* @type {string}
Expand Down Expand Up @@ -1803,6 +1811,10 @@ export default class Player extends FakeEventTarget {
* @returns {void}
*/
private _appendDomElements(): void {
// Append playkit-video-filter
const videoFilter = Utils.Dom.createElement('div');
Utils.Dom.addClassName(videoFilter, VIDEO_FILTER_CLASS_NAME);
Utils.Dom.appendChild(this._el, videoFilter);
// Append playkit-black-cover
this._blackCoverEl = Utils.Dom.createElement('div');
Utils.Dom.addClassName(this._blackCoverEl, BLACK_COVER_CLASS_NAME);
Expand Down

0 comments on commit 3af730d

Please sign in to comment.