diff --git a/package-lock.json b/package-lock.json
index e781ced49..1310a5e2e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -77,7 +77,6 @@
"cordova-plugin-media-capture": "^3.0.3",
"cordova-plugin-network-information": "^2.0.2",
"cordova-plugin-prevent-override": "^1.0.0",
- "cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-splashscreen": "^6.0.0",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
@@ -11201,18 +11200,6 @@
}
}
},
- "node_modules/cordova-plugin-screen-orientation": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/cordova-plugin-screen-orientation/-/cordova-plugin-screen-orientation-3.0.2.tgz",
- "integrity": "sha512-2w6CMC+HGvbhogJetalwGurL2Fx8DQCCPy3wlSZHN1/W7WoQ5n9ujVozcoKrY4VaagK6bxrPFih+ElkO8Uqfzg==",
- "engines": {
- "cordovaDependencies": {
- "4.0.0": {
- "cordova": ">100"
- }
- }
- }
- },
"node_modules/cordova-plugin-splashscreen": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-6.0.0.tgz",
@@ -12799,6 +12786,7 @@
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
"integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
+ "devOptional": true,
"dependencies": {
"iconv-lite": "^0.6.2"
}
@@ -12807,6 +12795,7 @@
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz",
"integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==",
+ "devOptional": true,
"dependencies": {
"safer-buffer": ">= 2.1.2 < 3.0.0"
},
@@ -39888,11 +39877,6 @@
"resolved": "https://registry.npmjs.org/cordova-plugin-prevent-override/-/cordova-plugin-prevent-override-1.0.0.tgz",
"integrity": "sha512-/+3q5r4K5RahCpiYVmZQBjq10x4jj+6CMjYtZyx9jdMWeV+yFE+ItFcO1NeUAEWd2iHC5YPD0P2tHiHx5kscsw=="
},
- "cordova-plugin-screen-orientation": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/cordova-plugin-screen-orientation/-/cordova-plugin-screen-orientation-3.0.2.tgz",
- "integrity": "sha512-2w6CMC+HGvbhogJetalwGurL2Fx8DQCCPy3wlSZHN1/W7WoQ5n9ujVozcoKrY4VaagK6bxrPFih+ElkO8Uqfzg=="
- },
"cordova-plugin-splashscreen": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cordova-plugin-splashscreen/-/cordova-plugin-splashscreen-6.0.0.tgz",
@@ -41147,6 +41131,7 @@
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz",
"integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==",
+ "devOptional": true,
"requires": {
"iconv-lite": "^0.6.2"
},
@@ -41155,6 +41140,7 @@
"version": "0.6.2",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.2.tgz",
"integrity": "sha512-2y91h5OpQlolefMPmUlivelittSWy0rP+oYVpn6A7GwVHNE8AWzoYOBNmlwks3LobaJxgHCYZAnyNo2GgpNRNQ==",
+ "devOptional": true,
"requires": {
"safer-buffer": ">= 2.1.2 < 3.0.0"
}
diff --git a/package.json b/package.json
index cc8e30643..bff141856 100644
--- a/package.json
+++ b/package.json
@@ -106,7 +106,6 @@
"cordova-plugin-media-capture": "^3.0.3",
"cordova-plugin-network-information": "^2.0.2",
"cordova-plugin-prevent-override": "^1.0.0",
- "cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-splashscreen": "^6.0.0",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
@@ -217,7 +216,6 @@
},
"cordova-plugin-network-information": {},
"@moodlehq/cordova-plugin-qrscanner": {},
- "cordova-plugin-screen-orientation": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
@@ -247,4 +245,4 @@
"optionalDependencies": {
"keytar": "^7.2.0"
}
-}
+}
\ No newline at end of file
diff --git a/src/addons/mod/scorm/pages/player/player.html b/src/addons/mod/scorm/pages/player/player.html
index a2074e95b..02e55ff42 100644
--- a/src/addons/mod/scorm/pages/player/player.html
+++ b/src/addons/mod/scorm/pages/player/player.html
@@ -22,7 +22,7 @@
{{ errorMessage | translate }}
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 038345fff..4701e426f 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -63,7 +63,6 @@ export class AppComponent implements OnInit, AfterViewInit { * - IAB events listening. * - Platform pause/resume subscriptions. * - handleOpenURL and openWindowSafely. - * - Screen orientation events (probably it can be removed). * - Back button registering to close modal first. * - Note: HideKeyboardFormAccessoryBar has been moved to config.xml. */ diff --git a/src/core/components/iframe/iframe.ts b/src/core/components/iframe/iframe.ts index 4d733438b..bf57b1443 100644 --- a/src/core/components/iframe/iframe.ts +++ b/src/core/components/iframe/iframe.ts @@ -22,7 +22,9 @@ import { CoreDomUtils } from '@services/utils/dom'; import { CoreUrlUtils } from '@services/utils/url'; import { CoreIframeUtils } from '@services/utils/iframe'; import { CoreUtils } from '@services/utils/utils'; -import { DomSanitizer } from '@singletons'; +import { DomSanitizer, StatusBar } from '@singletons'; +import { CoreEventObserver, CoreEvents } from '@singletons/events'; +import { CoreScreen, CoreScreenOrientation } from '@services/screen'; @Component({ selector: 'core-iframe', @@ -39,6 +41,7 @@ export class CoreIframeComponent implements OnChanges, OnDestroy { @Input() iframeHeight?: string; @Input() allowFullscreen?: boolean | string; @Input() showFullscreenOnToolbar?: boolean | string; + @Input() autoFullscreenOnRotate?: boolean | string; @Output() loaded: EventEmitter