Try to fix extension unsetting Netflix' default AR

This commit is contained in:
Tamius Han 2020-12-22 03:32:56 +01:00
parent f174ddab68
commit 70f7b88d71

View File

@ -550,6 +550,7 @@ class ArDetector {
// special browsers require special tests
if (this.hasDRM()) {
this.fallbackMode = false;
throw 'Video is protected by DRM. Autodetection cannot run here.';
}
this.fallbackMode = false;
@ -561,7 +562,14 @@ class ArDetector {
this.drmNotificationShown = true;
this.conf.player.showNotification('AARD_DRM');
return;
}
// in case of DRM errors, we need to prevent the execution to reach the aspec
// ratio setting part of this function
if (e === 'Video is protected by DRM. Autodetection cannot run here.') {
return;
}
if (! this.canvasReadyForDrawWindow()) {
// this means canvas needs to be resized, so we'll just re-run setup with all those new parameters
this.stop();