浏览代码

camera play

develop
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),

正在加载...
取消
保存