Skip to content

Commit

Permalink
fix(FEC-12059): [Youbora] Rendition values have a high number of "Und…
Browse files Browse the repository at this point in the history
…efined data" records (#533)

issue: Safari doesn’t expose the videoTrack.height/width/bandwidth so youbora doesn;t send the rendition
fix: Expose the element.videoHeight and element.videoWidth (from the playkit)

solves:  FEC-12059

related pr: kaltura/playkit-js-youbora#90
  • Loading branch information
JonathanTGold authored Mar 15, 2022
1 parent b9ad286 commit 43e023e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/kaltura-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ class KalturaPlayer extends FakeEventTarget {
return this._localPlayer.src;
}

get videoHeight(): ?number {
return this._localPlayer.videoHeight;
}

get videoWidth(): ?number {
return this._localPlayer.videoWidth;
}

set dimensions(dimensions?: PKPlayerDimensions) {
this._localPlayer.dimensions = dimensions;
}
Expand Down

0 comments on commit 43e023e

Please sign in to comment.