diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 19:10:54 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2020-09-06 19:10:54 -0400 |
| commit | 2eab17fcadb0dd0ff604f9536bc35ebfd7d5be76 (patch) | |
| tree | 8ddb1d2b5ad42a60d81a612c47e34d777b441629 | |
| parent | 32b40b96839cc4cac11eab00fa9b55482cee7457 (diff) | |
ignore pixelratio for video playback
| -rw-r--r-- | package.json | 4 | ||||
| -rwxr-xr-x | www/js/app.js | 1 | ||||
| -rw-r--r-- | www/templates/events-modal.html | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/package.json b/package.json index 77b86ccc..0ea65508 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,9 @@ "ANDROID_GSON_VERSION": "2.8.6" }, "cordova-plugin-advanced-http": {}, + "cordova-plugin-ionic-webview": { + "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+" + }, "cordova-plugin-media-pp-fork": {} } }, @@ -97,6 +100,7 @@ "cordova-plugin-ignore-lint-translation": "0.0.1", "cordova-plugin-insomnia": "^4.3.0", "cordova-plugin-ionic-keyboard": "^2.2.0", + "cordova-plugin-ionic-webview": "git+https://github.com/pliablepixels/cordova-plugin-ionic-webview.git", "cordova-plugin-media-pp-fork": "^1.0.2-dev", "cordova-plugin-multi-window": "0.0.3", "cordova-plugin-network-information": "^2.0.2", diff --git a/www/js/app.js b/www/js/app.js index f85a5571..81977def 100755 --- a/www/js/app.js +++ b/www/js/app.js @@ -1480,6 +1480,7 @@ angular.module('zmApp', [ $rootScope.devWidth = ((window.innerWidth > 0) ? window.innerWidth : screen.width); $rootScope.devHeight = ((window.innerHeight > 0) ? window.innerHeight : screen.height); $rootScope.videoHeight = $rootScope.devHeight - 20; + $rootScope.devWidthIgnorePix = $rootScope.devWidth; $rootScope.devWidth *= pixelRatio; $rootScope.devHeight *= pixelRatio; diff --git a/www/templates/events-modal.html b/www/templates/events-modal.html index d4f23bbb..36771e55 100644 --- a/www/templates/events-modal.html +++ b/www/templates/events-modal.html @@ -76,7 +76,7 @@ <!-- <div style="max-width:100%; max-height:100%;" on-swipe-left="onSwipeEvent(nextId,1)" on-swipe-right="onSwipeEvent(prevId,-1)" > --> - <div on-swipe-left="onSwipeEvent(nextId,1)" on-swipe-right="onSwipeEvent(prevId,-1)" ng-style="{'height':$root.videoHeight+'px', 'width':$root.devWidth+'px'}"> + <div on-swipe-left="onSwipeEvent(nextId,1)" on-swipe-right="onSwipeEvent(prevId,-1)" ng-style="{'height':$root.videoHeight+'px', 'width':$root.devWidthIgnorePix+'px'}"> <videogular id="testaut_events_playwindow" vg-can-play="onCanPlay()" vg-native-fullscreen="videoObject.config.nativeFullScreen" vg-player-ready="onPlayerReady($API)" |
