Robin Thoni преди 9 години
родител
ревизия
f85cc12b19
променени са 3 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 2
    1
      camotion/controllers/cameras.controller.js
  2. Двоични данни
      camotion/img/camera_loading.jpg
  3. 1
    1
      camotion/views/cameras.html

+ 2
- 1
camotion/controllers/cameras.controller.js Целия файл

@@ -50,7 +50,8 @@ angular.module('camotion')
50 50
                                     timerId: $timeout(function () {
51 51
                                         $scope.updateCamera(camera);
52 52
                                     }, $scope.interval)
53
-                                }
53
+                                };
54
+                                angular.element('#camera_' + camera.Id)[0].src = "data:image/jpeg;base64," + image.Image;
54 55
                             }
55 56
                         }, function (error) {
56 57
                             $scope.pause(camera);

Двоични данни
camotion/img/camera_loading.jpg Целия файл


+ 1
- 1
camotion/views/cameras.html Целия файл

@@ -2,7 +2,7 @@
2 2
 <div class="container">
3 3
     <div ng-repeat="c in cameras" class="col-md-6">
4 4
         <figure class="player col-sm-12">
5
-            <img ng-click="playPause(c)" src="https://designmodo.github.io/Flat-UI/docs/assets/img/video/poster.jpg" class="player-image">
5
+            <img id="camera_{{ c.Id }}" ng-click="playPause(c)" src="img/camera_loading.jpg" class="player-image">
6 6
             <figcaption class="player-legend" title="{{ c.Description }}">
7 7
                 <span class="player-button-play" ng-class="{
8 8
                     'fui-play': !isPlaying(c),

Loading…
Отказ
Запис