Skip to content

Commit

Permalink
fix(FEC-8826): default element is video container instead main contai…
Browse files Browse the repository at this point in the history
…ner (#235)

Add default in kaltura player to the main container
  • Loading branch information
Yuvalke authored Apr 4, 2019
1 parent 60edaf6 commit 3b3caa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ class KalturaPlayer extends FakeEventTarget {
this._localPlayer.notifyExitFullscreen();
}

enterFullscreen(fullScreenElement: ?HTMLElement): void {
this._localPlayer.enterFullscreen(fullScreenElement);
enterFullscreen(fullScreenElementId: ?string): void {
const elementId = fullScreenElementId ? fullScreenElementId : this.config.targetId;
this._localPlayer.enterFullscreen(elementId);
}

exitFullscreen(): void {
Expand Down

0 comments on commit 3b3caa3

Please sign in to comment.