From a1af9dd5b9ebe6b671f5fe7daa97f713f66f8cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Velad=20Galv=C3=A1n?= Date: Sun, 26 Jun 2022 05:54:36 +0200 Subject: [PATCH] fix: Fix getVideoPlaybackQuality in WebOS 3 (#4316) 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 https://github.com/shaka-project/shaka-player/issues/4313 --- lib/polyfill/videoplaybackquality.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/polyfill/videoplaybackquality.js b/lib/polyfill/videoplaybackquality.js index 6adde939aa..c46c7809fe 100644 --- a/lib/polyfill/videoplaybackquality.js +++ b/lib/polyfill/videoplaybackquality.js @@ -7,6 +7,7 @@ goog.provide('shaka.polyfill.VideoPlaybackQuality'); goog.require('shaka.polyfill'); +goog.require('shaka.util.Platform'); /** @@ -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_; }