Browse Source

camera play

develop
Robin Thoni 9 years ago
parent
commit
f85cc12b19

+ 2
- 1
camotion/controllers/cameras.controller.js View File

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

BIN
camotion/img/camera_loading.jpg View File


+ 1
- 1
camotion/views/cameras.html View File

2
 <div class="container">
2
 <div class="container">
3
     <div ng-repeat="c in cameras" class="col-md-6">
3
     <div ng-repeat="c in cameras" class="col-md-6">
4
         <figure class="player col-sm-12">
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
             <figcaption class="player-legend" title="{{ c.Description }}">
6
             <figcaption class="player-legend" title="{{ c.Description }}">
7
                 <span class="player-button-play" ng-class="{
7
                 <span class="player-button-play" ng-class="{
8
                     'fui-play': !isPlaying(c),
8
                     'fui-play': !isPlaying(c),

Loading…
Cancel
Save