Skip to content

Commit ca751a1

Browse files
Viktor Vasylkovskyiavelad
authored andcommitted
fix: APL set-top box wrongly identifies as an Apple device. (#6026)
1 parent 2bc303b commit ca751a1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/util/platform.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ shaka.util.Platform = class {
234234
return !!navigator.vendor && navigator.vendor.includes('Apple') &&
235235
!shaka.util.Platform.isTizen() &&
236236
!shaka.util.Platform.isEOS() &&
237+
!shaka.util.Platform.isAPL() &&
237238
!shaka.util.Platform.isVirginMedia() &&
238239
!shaka.util.Platform.isOrange() &&
239240
!shaka.util.Platform.isPS4() &&
@@ -357,6 +358,15 @@ shaka.util.Platform = class {
357358
return shaka.util.Platform.userAgentContains_('PC=EOS');
358359
}
359360

361+
/**
362+
* Check if the current platform is an APL set-top box.
363+
*
364+
* @return {boolean}
365+
*/
366+
static isAPL() {
367+
return shaka.util.Platform.userAgentContains_('PC=APL');
368+
}
369+
360370
/**
361371
* Guesses if the platform is a mobile one (iOS or Android).
362372
*

0 commit comments

Comments
 (0)