summaryrefslogtreecommitdiff
path: root/www/templates/events-modal.html
blob: 610ef068e78d3a66b99b70df3c853995ad1932dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<ion-modal-view cache="false">
    <ion-content style="background-color:#444444">
        <ion-scroll has-bouncing=false min-zoom=1 zooming="true"
                    direction="xy" style="width: 100%; ">
            <div style="height: 100vh;">
                <img imageonload="finishedLoadingImage()"
                     ng-src="{{loginData.streamingurl}}/cgi-bin/zms?source=event&mode=jpeg&event={{eventId}}&frame=1&maxfps={{loginData.maxFPS}}&replay=single&user={{loginData.username}}&pass={{loginData.password}}&connkey={{connKey}}&rand={{rand}}"
                     ng-class="{'zm-image-fit':imageStyle==true, 'zm-image-crop':imageStyle==false}" />
            </div>
        </ion-scroll>
    </ion-content>
</ion-modal-view>

<nav mfb-menu position="br" effect="zoomin" label="collapse"
     active-icon="ion-chevron-down" resting-icon="ion-chevron-up"
     toggling-method="click">
    <button mfb-button icon="ion-close"
            label="exit event view" ng-click="closeModal()">
    </button>
    <a mfb-button icon="ion-reply" label="previous event"
       ng-click="controlEventStream(eventCommands.previous)"></a>
    <a mfb-button icon="ion-forward" label="next event"
       ng-click="controlEventStream(eventCommands.next)"></a>
</nav>

<nav mfb-menu position="bl" effect="zoomin" label="collapse"
     active-icon="ion-chevron-down" resting-icon="ion-chevron-up" toggling-method="click">
    <a mfb-button icon="ion-refresh" label="refresh" ng-click="reloadView()"></a>
    <a mfb-button icon="ion-pause" label="pause"
       ng-click="controlEventStream(eventCommands.pause)"></a>
    <a mfb-button icon="ion-play" label="play"
       ng-click="controlEventStream(eventCommands.play)"></a>
</nav>


<nav mfb-menu position="tr" effect="zoomin" label="collapse"
     active-icon="ion-chevron-up" resting-icon="ion-chevron-down"
     toggling-method="click">
    <a mfb-button icon="ion-ios-fastforward" label="fast forward"
       ng-click="controlEventStream(eventCommands.fastFwd)"></a>
    <a mfb-button icon="ion-ios-fastforward-outline" label="slow forward"
       ng-click="controlEventStream(eventCommands.slowFwd)"></a>
    <a mfb-button icon="ion-ios-rewind" label="fast rewind"
       ng-click="controlEventStream(eventCommands.fastRev)"></a>
    <a mfb-button icon="ion-ios-rewind-outline" label="slow rewind"
       ng-click="controlEventStream(eventCommands.slowRev)"></a>
</nav>

<progress max="{{totalEventTime}}" value="{{currentEventTime}}"
          class="eventprogress"></progress>