Skip to content

Commit

Permalink
fix: Fix getVideoPlaybackQuality in WebOS 3 (#4316)
Browse files Browse the repository at this point in the history
It seems that webkitDroppedFrameCount is not included in the prototype but it is included in the video element itself, that's why it fails in WebOS 3.

Closes #4313
  • Loading branch information
Álvaro Velad Galván authored and joeyparrish committed Jul 14, 2022
1 parent 1d642e5 commit a1af9dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/polyfill/videoplaybackquality.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
goog.provide('shaka.polyfill.VideoPlaybackQuality');

goog.require('shaka.polyfill');
goog.require('shaka.util.Platform');


/**
Expand All @@ -33,7 +34,8 @@ shaka.polyfill.VideoPlaybackQuality = class {
return;
}

if ('webkitDroppedFrameCount' in proto) {
if ('webkitDroppedFrameCount' in proto ||
shaka.util.Platform.isWebOS3()) {
proto.getVideoPlaybackQuality =
shaka.polyfill.VideoPlaybackQuality.webkit_;
}
Expand Down

0 comments on commit a1af9dd

Please sign in to comment.