Skip to content

Commit

Permalink
fix: Fix getVideoPlaybackQuality in WebOS 3 (shaka-project#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 shaka-project#4313
  • Loading branch information
Álvaro Velad Galván committed Jun 26, 2022
1 parent 7c2c4be commit 5561111
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/polyfill/videoplaybackquality.js
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 5561111

Please sign in to comment.