summaryrefslogtreecommitdiff
path: root/www/js/MontageCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MontageCtrl.js')
-rw-r--r--www/js/MontageCtrl.js17
1 files changed, 14 insertions, 3 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index 90876164..28f74f04 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -1930,10 +1930,21 @@ angular.module('zmApp.controllers')
$scope.$on('$ionicView.beforeLeave', function () {
- areStreamsStopped = true;
- viewCleanup();
- viewCleaned = true;
+ if ($rootScope.platformOS == 'ios') {
+ // we need to force a window stop thanks to the webkit streaming bug
+ areStreamsStopped = true;
+ $timeout (function() {NVRDataModel.stopNetwork();viewCleaned = true;});
+
+
+ } else {
+
+ areStreamsStopped = true;
+ viewCleanup();
+ viewCleaned = true;
+
+ }
+
});
$scope.$on('$ionicView.unloaded', function () {