/
ui3.js
16559 lines (15984 loc) · 507 KB
/
ui3.js
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="ui3-local-overrides.js" />
/// <reference path="libs-src/jquery-1.11.3.js" />
/// <reference path="libs-ui3.js" />
/// This web interface is licensed under the GNU LGPL Version 3
"use strict";
var developerMode = false;
///////////////////////////////////////////////////////////////
// Feature Detect /////////////////////////////////////////////
///////////////////////////////////////////////////////////////
var h264_playback_supported = false;
var audio_playback_supported = false;
var web_workers_supported = false;
var fetch_supported = false;
var readable_stream_supported = false;
var webgl_supported = false;
var web_audio_supported = false;
var web_audio_buffer_source_supported = false;
var fullscreen_supported = false;
var browser_is_ios = false;
var browser_is_android = false;
function DoUIFeatureDetection()
{
try
{
requestAnimationFramePolyFill();
if (!isCanvasSupported())
MissingRequiredFeature("HTML5 Canvas"); // Excludes IE 8
else if (!areCookiesEnabled())
MissingRequiredFeature("Cookies", "Cookies are required for UI3's session management.");
else
{
// All critical tests pass
// Non-critical tests can run here and store their results in global vars.
browser_is_ios = BrowserIsIOSSafari() || BrowserIsIOSChrome();
browser_is_android = BrowserIsAndroid();
web_workers_supported = typeof Worker !== "undefined";
fetch_supported = typeof fetch == "function";
readable_stream_supported = typeof ReadableStream == "function";
webgl_supported = detectWebGLContext();
var AudioContext = window.AudioContext || window.webkitAudioContext;
if (AudioContext)
{
try
{
var context = new AudioContext();
if (typeof context.createGain == "function")
{
web_audio_supported = true;
if (typeof context.createBuffer == "function" && typeof context.createBufferSource == "function")
web_audio_buffer_source_supported = true;
}
}
catch (ex) { }
}
fullscreen_supported = ((document.documentElement.requestFullscreen || document.documentElement.msRequestFullscreen || document.documentElement.mozRequestFullScreen || document.documentElement.webkitRequestFullscreen) && (document.exitFullscreen || document.msExitFullscreen || document.mozCancelFullScreen || document.webkitExitFullscreen)) ? true : false;
h264_playback_supported = web_workers_supported && fetch_supported && readable_stream_supported && webgl_supported;
audio_playback_supported = h264_playback_supported && web_audio_supported && web_audio_buffer_source_supported;
$(function ()
{
var ul_root = $('<ul></ul>');
if (!h264_playback_supported)
{
var ul = $('<ul></ul>');
if (!web_workers_supported)
ul.append('<li>Web Workers</li>');
if (!fetch_supported)
ul.append('<li>Fetch API</li>');
if (!readable_stream_supported)
ul.append('<li>ReadableStream</li>');
if (!webgl_supported)
ul.append('<li>WebGL</li>');
ul_root.append($('<li>The H.264 video player requires these unsupported features:</li>').append(ul));
}
if (!audio_playback_supported)
{
var ul = $('<ul></ul>');
if (!h264_playback_supported)
ul.append('<li>H.264 Video Player</li>');
if (!web_audio_supported)
ul.append('<li>Web Audio API</li>');
if (!web_audio_buffer_source_supported)
ul.append('<li>AudioBufferSourceNode</li>');
ul_root.append($('<li>The audio player requires these unsupported features:</li>').append(ul));
}
if (!fullscreen_supported)
{
ul_root.append('<li>Fullscreen mode is not supported.</li>');
}
if (browser_is_ios)
{
ul_root.append('<li>Context menus are not supported.</li>');
}
if (!isHtml5HistorySupported())
{
ul_root.append('<li>The back button will not close the current clip or camera, like it does on most other platforms.</li>');
}
if (ul_root.children().length > 0)
{
var $opt = $('#optionalFeaturesNotSupported');
$opt.append(ul_root);
$opt.show();
}
});
return;
}
// A critical test failed
location.href = "/jpegpull.htm";
}
catch (ex)
{
alert("Unknown error during feature detection. This web browser is likely incompatible.");
try
{
console.log(ex);
}
catch (ex2)
{
}
}
}
function MissingRequiredFeature(featureName, description)
{
alert("This web interface requires a feature that is unavailable or disabled in your web browser.\n\nMissing feature: " + featureName + (description ? ". " + description : "") + "\n\nYou will be redirected to a simpler web interface.");
}
function isCanvasSupported()
{
var elem = document.createElement('canvas');
return !!(elem.getContext && elem.getContext('2d'));
}
function areCookiesEnabled()
{
try
{
var session = $.cookie("session");
if (session)
return true;
$.cookie("session", "test", { path: "/" });
session = $.cookie("session")
$.cookie("session", "", { path: "/" });
return session === "test";
} catch (e) { }
return false;
}
function isLocalStorageEnabled()
{
try // May throw exception if local storage is disabled by browser settings!
{
var key = "local_storage_test_item";
localStorage.setItem(key, key);
localStorage.removeItem(key);
return true;
} catch (e)
{
return false;
}
}
function isHtml5HistorySupported()
{
try
{
if (BrowserIsIOSChrome())
return false; // Chrome on iOS has too many history bugs.
if (BrowserIsAndroid())
return false; // If the back button is overridden on Android, it can't be used to close the browser while UI3 is the first item in history.
if (window.history && typeof window.history.state == "object" && typeof window.history.pushState == "function" && typeof window.history.replaceState == "function")
return true;
return false;
} catch (e)
{
return false;
}
}
function requestAnimationFramePolyFill()
{
try
{
if (typeof requestAnimationFrame != "function")
requestAnimationFrame = function (callback) { setTimeout(callback, 33); };
return true;
}
catch (e)
{
return false;
}
}
function detectWebGLContext()
{
var canvas = document.createElement("canvas");
var gl = canvas.getContext("webgl")
|| canvas.getContext("experimental-webgl");
return gl && gl instanceof WebGLRenderingContext;
}
DoUIFeatureDetection();
///////////////////////////////////////////////////////////////
// Globals (most of them) /////////////////////////////////////
///////////////////////////////////////////////////////////////
var toaster = new Toaster();
var ajaxHistoryManager;
var loadingHelper = new LoadingHelper();
var touchEvents = new TouchEventHelper();
var clipboardHelper;
var uiSizeHelper = null;
var uiSettingsPanel = null;
var pcmPlayer = null;
var diskUsageGUI = null;
var systemConfig = null;
var cameraListDialog = null;
var clipProperties = null;
var clipDownloadDialog = null;
var statusBars = null;
var dropdownBoxes = null;
var leftBarBools = null;
var genericQualityHelper = null;
var jpegQualityHelper = null;
var h264QualityHelper = null;
var ptzButtons = null;
var playbackHeader = null;
var seekBar = null;
var playbackControls = null;
var clipTimeline = null;
var hotkeys = null;
var dateFilter = null;
var hlsPlayer = null;
var fullScreenModeController = null;
var canvasContextMenu = null;
var calendarContextMenu = null;
var clipListContextMenu = null;
var togglableContextMenus = null;
var cameraConfig = null;
var videoPlayer = null;
var imageRenderer = null;
var sessionManager = null;
var statusLoader = null;
var cameraListLoader = null;
var clipLoader = null;
var clipThumbnailVideoPreview = null;
var nerdStats = null;
var sessionTimeout = null;
var currentPrimaryTab = "";
var skipTabLoadClipLoad = false;
var togglableUIFeatures =
[
// The uniqueId is also used in the name of a setting which remembers the enabled state.
// If you add a new togglabe UI feature here, also add the corresponding default setting value.
// [selector, uniqueId, displayName, onToggle, extraMenuButtons, shouldDisableToggler, labels]
["#volumeBar", "volumeBar", "Volume Controls", function (enabled)
{
statusBars.setEnabled("volume", enabled);
if (enabled)
$("#volumeBar").removeClass("disabled")
else
$("#volumeBar").addClass("disabled")
}, null, null]
, ["#profileStatusBox", "profileStatus", "Profile Status Controls", function (enabled) { statusLoader.SetProfileButtonsEnabled(enabled); }, null, null]
, ["#stoplightBtn", "stopLight", "Stoplight Controls", function (enabled) { statusLoader.SetStoplightButtonEnabled(enabled); }, null, null]
, ["#globalScheduleBox", "globalSchedule", "Schedule Controls", function (enabled) { dropdownBoxes.setEnabled("schedule", enabled); }, null, null]
// The PTZ Controls hot area specifically does not include the main button pad because a context menu on that pad would break touchscreen usability
, [".ptzpreset", "ptzControls", "PTZ Controls", function (enabled) { ptzButtons.setEnabled(enabled); }
, [{
getName: function (ele) { return "Goto Preset " + ele.getAttribute("presetnum") + htmlEncode(ptzButtons.GetPresetDescription(ele.getAttribute("presetnum"), true)); }
, action: function (ele) { ptzButtons.PTZ_goto_preset(ele.presetnum); }
, shouldDisable: function () { return !ptzButtons.isEnabledNow(); }
}
, {
getName: function (ele) { return "Set Preset " + ele.getAttribute("presetnum"); }
, action: function (ele) { ptzButtons.PresetSet(ele.getAttribute("presetnum")); }
, shouldDisable: function () { return !ptzButtons.isEnabledNow(); }
}]
, function () { return !videoPlayer.Loading().image.ptz; }
]
, ["#playbackHeader", "clipNameLabel", "Clip Name", function (enabled)
{
if (enabled)
$("#clipNameHeading").show();
else
$("#clipNameHeading").hide();
}, null, null, ["Show", "Hide", "Toggle"]]
];
///////////////////////////////////////////////////////////////
// Notes that require BI changes //////////////////////////////
///////////////////////////////////////////////////////////////
// TODO: Once Blue Iris stops telling the browser not to cache clip thumbnails, stop using ImageToDataUrl for the clip thumbnail mouseover popup.
///////////////////////////////////////////////////////////////
// High priority notes ////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
// Low priority notes /////////////////////////////////////////
///////////////////////////////////////////////////////////////
// CONSIDER: Play sounds like default.htm does when certain events occur.
// CONSIDER: Show status icons in the upper right corner of H.264 video based on values received in the Status blocks.
// CONSIDER: Android Chrome > Back button can't close the browser if there is no history, so the back button override is disabled on Android. Also disabled on iOS for similar bugs.
// CONSIDER: Seeking while paused in Chrome, the canvas sometimes shows the image scaled using nearest-neighbor.
// CONSIDER: Add "Remote Control" menu based on that which is available in iOS and Android apps.
///////////////////////////////////////////////////////////////
// Settings ///////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
var settings = null;
var settingsCategoryList = ["General Settings", "Clip / Alert Icons", "Hotkeys", "Extra"];
var defaultSettings =
[
{
key: "ui3_defaultTab"
, value: "live"
}
, {
key: "ui3_defaultCameraGroupId"
, value: "index"
}
, {
key: "ui3_audioVolume"
, value: 0
}
, {
key: "ui3_audioMute"
, value: "1"
}
, {
key: "ui3_streamingQuality"
, value: "S0"
}
, {
key: "ui3_playback_reverse"
, value: "0"
}
, {
key: "ui3_playback_speed"
, value: "1"
}
, {
key: "ui3_playback_autoplay"
, value: "0"
}
, {
key: "ui3_playback_loop"
, value: "0"
}
, {
key: "ui3_recordings_flagged_only"
, value: "0"
}
, {
key: "ui3_cliplist_larger_thumbnails"
, value: "0"
}
, {
key: "ui3_cliplist_mouseover_thumbnails"
, value: "1"
}
, {
key: "bi_rememberMe"
, value: "0"
}
, {
key: "bi_username"
, value: ""
}
, {
key: "bi_password"
, value: ""
}
, {
key: "ui3_webcasting_disabled_dontShowAgain"
, value: "0"
}
, {
key: "ui3_feature_enabled_volumeBar" // ui3_feature_enabled keys are tied to unique IDs in togglableUIFeatures
, value: "1"
}
, {
key: "ui3_feature_enabled_profileStatus"
, value: "1"
}
, {
key: "ui3_feature_enabled_stopLight"
, value: "1"
}
, {
key: "ui3_feature_enabled_globalSchedule"
, value: "1"
}
, {
key: "ui3_feature_enabled_ptzControls"
, value: "1"
}
, {
key: "ui3_feature_enabled_clipNameLabel"
, value: "1"
}
, {
key: "ui3_collapsible_ptz"
, value: "1"
}
, {
key: "ui3_collapsible_profileStatus"
, value: "1"
}
, {
key: "ui3_collapsible_schedule"
, value: "1"
}
, {
key: "ui3_collapsible_currentGroup"
, value: "1"
}
, {
key: "ui3_collapsible_streamingQuality"
, value: "1"
}
, {
key: "ui3_collapsible_serverStatus"
, value: "1"
}
, {
key: "ui3_collapsible_filterRecordings"
, value: "1"
}
, {
key: "ui3_cps_info_visible"
, value: "1"
}
, {
key: "ui3_cps_gs_visible"
, value: "1"
}
, {
key: "ui3_cps_mt_visible"
, value: "1"
}
, {
key: "ui3_cps_mro_visible"
, value: "1"
}
, {
key: "ui3_cps_mgmt_visible"
, value: "1"
}
, {
key: "ui3_cps_uiSettings_category_General_Settings_visible"
, value: "1"
}
, {
key: "ui3_cps_uiSettings_category_Clip___Alert_Icons_visible"
, value: "1"
}
, {
key: "ui3_cps_uiSettings_category_Hotkeys_visible"
, value: "1"
}
, {
key: "ui3_clipPreviewEnabled"
, value: "1"
, inputType: "checkbox"
, label: "Clip Preview Animations"
, hint: "When enabled, mousing over the alert/clip list shows a rapid animated preview. Video streaming performance may suffer while the animation is active."
, category: "General Settings"
}
, {
key: "ui3_timeout"
, value: 10
, inputType: "number"
, minValue: 0
, maxValue: 525600
, label: "The UI will close itself after this many minutes of inactivity. (0 to disable)"
, category: "General Settings"
}
, {
key: "ui3_preferred_ui_scale"
, value: "Auto"
, inputType: "select"
, options: ["Auto", "Large", "Medium", "Small", "Smaller"]
, label: "Preferred UI Scale"
, onChange: OnChange_ui3_preferred_ui_scale
, category: "General Settings"
}
, {
key: "ui3_doubleClick_behavior"
, value: "Recordings"
, inputType: "select"
, options: ["None", "Live View", "Recordings", "Both"]
, label: 'Double-Click to Fullscreen<br><a href="javascript:UIHelp.LearnMore(\'Double-Click to Fullscreen\')">(learn more)</a>'
, category: "General Settings"
}
, {
key: "ui3_time24hour"
, value: "0"
, inputType: "checkbox"
, label: '24-Hour Time'
, onChange: OnChange_ui3_time24hour
, category: "General Settings"
}
, {
key: "ui3_clipicon_trigger_motion"
, value: "0"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_run"></use></svg> for motion-triggered alerts'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_trigger_audio"
, value: "1"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_volumeUp"></use></svg> for audio-triggered alerts'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_trigger_external"
, value: "1"
, inputType: "checkbox"
, label: '<svg class="icon clipicon"><use xlink:href="#svg_x5F_Alert2"></use></svg> for externally-triggered alerts'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_trigger_group"
, value: "1"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_quilt"></use></svg> for group-triggered alerts'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_clip_audio"
, value: "1"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_volumeUp"></use></svg> for clips with audio'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_clip_backingup"
, value: "0"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_cloudUploading"></use></svg> for clips that are being backed up'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_clip_backup"
, value: "0"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_cloudUploaded"></use></svg> for clips that have been backed up'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_clipicon_protect"
, value: "1"
, inputType: "checkbox"
, label: '<svg class="icon clipicon noflip"><use xlink:href="#svg_mio_lock"></use></svg> for protected items'
, category: "Clip / Alert Icons"
}
, {
key: "ui3_hotkey_maximizeVideoArea"
, value: "1|0|0|192" // 192: tilde (~`)
, hotkey: true
, label: "Maximize Video Area"
, hint: "Shows or hides the left and top control bars. This can be triggered on page load via the url parameter \"maximize=1\"."
, actionDown: BI_Hotkey_MaximizeVideoArea
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_togglefullscreen"
, value: "0|0|0|192" // 192: tilde (~`)
, hotkey: true
, label: "Full Screen Mode"
, hint: "Toggles Full Screen Mode and shows or hides the left and top control bars according to UI defaults."
, actionDown: BI_Hotkey_FullScreen
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_tab_live"
, value: "0|0|0|112" // 112: F1
, hotkey: true
, label: "Load Tab: Live View"
, hint: "Opens the Live View tab"
, actionDown: BI_Hotkey_Load_Tab_Live
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_tab_alerts"
, value: "0|0|0|113" // 113: F2
, hotkey: true
, label: "Load Tab: Alerts"
, hint: "Opens the Alerts tab"
, actionDown: BI_Hotkey_Load_Tab_Alerts
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_tab_clips"
, value: "0|0|0|114" // 114: F3
, hotkey: true
, label: "Load Tab: Clips"
, hint: "Opens the Clips tab"
, actionDown: BI_Hotkey_Load_Tab_Clips
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_nextCamera"
, value: "0|0|0|190" // 190: . (period)
, hotkey: true
, label: "Next Camera"
, hint: "Manually cycles to the next camera when a camera is maximized."
, actionDown: BI_Hotkey_NextCamera
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_prevCamera"
, value: "0|0|0|188" // 188: , (comma)
, hotkey: true
, label: "Previous Camera"
, hint: "Manually cycles to the previous camera when a camera is maximized."
, actionDown: BI_Hotkey_PreviousCamera
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_nextGroup"
, value: "1|0|1|190" // 190: CTRL + SHIFT + . (period)
, hotkey: true
, label: "Next Group"
, hint: "Manually loads your next group or cycle stream."
, actionDown: BI_Hotkey_NextGroup
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_prevGroup"
, value: "1|0|1|188" // 188: CTRL + SHIFT + , (comma)
, hotkey: true
, label: "Previous Group"
, hint: "Manually loads your previous group or cycle stream."
, actionDown: BI_Hotkey_PreviousGroup
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_playpause"
, value: "0|0|0|32" // 32: space
, hotkey: true
, label: "Play/Pause"
, hint: "Plays or pauses the current recording."
, actionDown: BI_Hotkey_PlayPause
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_toggleReverse"
, value: "0|0|0|8" // 8: backspace
, hotkey: true
, label: "Reverse Playback"
, hint: "Toggles between Forward and Reverse playback."
, actionDown: BI_Hotkey_ToggleReverse
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_newerClip"
, value: "0|0|0|38" // 38: up arrow
, hotkey: true
, label: "Next Clip"
, hint: "Load the next clip, higher up in the list."
, actionDown: BI_Hotkey_NextClip
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_olderClip"
, value: "0|0|0|40" // 40: down arrow
, hotkey: true
, label: "Previous Clip"
, hint: "Load the previous clip, lower down in the list."
, actionDown: BI_Hotkey_PreviousClip
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_skipAhead"
, value: "0|0|0|39" // 39: right arrow
, hotkey: true
, label: "Skip Ahead"
, hint: "Skips ahead in the current recording by a configurable number of seconds."
, actionDown: BI_Hotkey_SkipAhead
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_skipBack"
, value: "0|0|0|37" // 37: left arrow
, hotkey: true
, label: "Skip Back"
, hint: "Skips back in the current recording by a configurable number of seconds."
, actionDown: BI_Hotkey_SkipBack
, category: "Hotkeys"
}
, {
key: "ui3_skipAmount"
, value: 10
, inputType: "number"
, minValue: 0
, maxValue: 9999
, label: "Skip Time (seconds)"
, hint: "[0.01-9999] (default: 10) \r\nNumber of seconds to skip forward and back when using hotkeys to skip."
, onChange: OnChange_ui3_skipAmount
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_skipAhead1Frame"
, value: "0|0|0|190" // 190: . (period)
, hotkey: true
, label: "Skip Ahead 1 Frame"
, hint: "Skips ahead in the current recording by approximately one frame."
, actionDown: BI_Hotkey_SkipAhead1Frame
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_skipBack1Frame"
, value: "0|0|0|188" // 188: , (comma)
, hotkey: true
, label: "Skip Back 1 Frame"
, hint: "Skips back in the current recording by approximately one frame."
, actionDown: BI_Hotkey_SkipBack1Frame
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_playback_faster"
, value: "0|0|0|221" // 221: ]
, hotkey: true
, label: "Playback Faster"
, hint: "Increases clip playback speed"
, actionDown: BI_Hotkey_PlaybackFaster
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_playback_slower"
, value: "0|0|0|219" // 219: [
, hotkey: true
, label: "Playback Slower"
, hint: "Decreases clip playback speed"
, actionDown: BI_Hotkey_PlaybackSlower
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_close_clip"
, value: "0|0|0|27" // 27: escape
, hotkey: true
, label: "Close Clip"
, hint: "Closes the current clip."
, actionDown: BI_Hotkey_CloseClip
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_close_camera"
, value: "0|0|0|27" // 27: escape
, hotkey: true
, label: "Close Camera"
, hint: "Closes the current live camera and returns to the group view."
, actionDown: BI_Hotkey_CloseCamera
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalZoomIn"
, value: "0|0|1|187" // 187: =
, hotkey: true
, label: "Digital Zoom In"
, hint: "This has the same function as rolling a mouse wheel one notch."
, actionDown: BI_Hotkey_DigitalZoomIn
, allowRepeatKey: true
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalZoomOut"
, value: "0|0|1|189" // : 189: -
, hotkey: true
, label: "Digital Zoom Out"
, hint: "This has the same function as rolling a mouse wheel one notch."
, actionDown: BI_Hotkey_DigitalZoomOut
, allowRepeatKey: true
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalPanUp"
, value: "0|0|1|38" // 38: up arrow
, hotkey: true
, label: "Digital Pan Up"
, hint: "If zoomed in with digital zoom, pans up."
, actionDown: BI_Hotkey_DigitalPanUp
, actionUp: BI_Hotkey_DigitalPanUp_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalPanDown"
, value: "0|0|1|40" // 40: down arrow
, hotkey: true
, label: "Digital Pan Down"
, hint: "If zoomed in with digital zoom, pans down."
, actionDown: BI_Hotkey_DigitalPanDown
, actionUp: BI_Hotkey_DigitalPanDown_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalPanLeft"
, value: "0|0|1|37" // 37: left arrow
, hotkey: true
, label: "Digital Pan Left"
, hint: "If zoomed in with digital zoom, pans left."
, actionDown: BI_Hotkey_DigitalPanLeft
, actionUp: BI_Hotkey_DigitalPanLeft_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_digitalPanRight"
, value: "0|0|1|39" // 39: right arrow
, hotkey: true
, label: "Digital Pan Right"
, hint: "If zoomed in with digital zoom, pans right."
, actionDown: BI_Hotkey_DigitalPanRight
, actionUp: BI_Hotkey_DigitalPanRight_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzUp"
, value: "0|0|0|38" // 38: up arrow
, hotkey: true
, label: "PTZ Up"
, hint: "If the current live camera is PTZ, moves the camera up."
, actionDown: BI_Hotkey_PtzUp
, actionUp: BI_Hotkey_PtzUp_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzDown"
, value: "0|0|0|40" // 40: down arrow
, hotkey: true
, label: "PTZ Down"
, hint: "If the current live camera is PTZ, moves the camera down."
, actionDown: BI_Hotkey_PtzDown
, actionUp: BI_Hotkey_PtzDown_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzLeft"
, value: "0|0|0|37" // 37: left arrow
, hotkey: true
, label: "PTZ Left"
, hint: "If the current live camera is PTZ, moves the camera left."
, actionDown: BI_Hotkey_PtzLeft
, actionUp: BI_Hotkey_PtzLeft_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzRight"
, value: "0|0|0|39" // 39: right arrow
, hotkey: true
, label: "PTZ Right"
, hint: "If the current live camera is PTZ, moves the camera right."
, actionDown: BI_Hotkey_PtzRight
, actionUp: BI_Hotkey_PtzRight_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzIn"
, value: "0|0|0|187" // 187: =
, hotkey: true
, label: "PTZ Zoom In"
, hint: "If the current live camera is PTZ, zooms the camera in."
, actionDown: BI_Hotkey_PtzIn
, actionUp: BI_Hotkey_PtzIn_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzOut"
, value: "0|0|0|189" // 189: -
, hotkey: true
, label: "PTZ Zoom Out"
, hint: "If the current live camera is PTZ, zooms the camera out."
, actionDown: BI_Hotkey_PtzOut
, actionUp: BI_Hotkey_PtzOut_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzFocusFar"
, value: "0|0|0|221" // 221: ]
, hotkey: true
, label: "PTZ Focus Far"
, hint: "If the current live camera is PTZ, focuses the camera further away."
, actionDown: BI_Hotkey_PtzFocusFar
, actionUp: BI_Hotkey_PtzFocusFar_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzFocusNear"
, value: "0|0|0|219" // 219: [
, hotkey: true
, label: "PTZ Focus Near"
, hint: "If the current live camera is PTZ, focuses the camera closer."
, actionDown: BI_Hotkey_PtzFocusNear
, actionUp: BI_Hotkey_PtzFocusNear_Up
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset1"
, value: "0|0|0|49" // 49: 1
, hotkey: true
, label: "Load Preset 1"
, hint: "If the current live camera is PTZ, loads preset 1."
, actionDown: function () { BI_Hotkey_PtzPreset(1); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset2"
, value: "0|0|0|50" // 50: 2
, hotkey: true
, label: "Load Preset 2"
, hint: "If the current live camera is PTZ, loads preset 2."
, actionDown: function () { BI_Hotkey_PtzPreset(2); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset3"
, value: "0|0|0|51" // 51: 3
, hotkey: true
, label: "Load Preset 3"
, hint: "If the current live camera is PTZ, loads preset 3."
, actionDown: function () { BI_Hotkey_PtzPreset(3); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset4"
, value: "0|0|0|52" // 52: 4
, hotkey: true
, label: "Load Preset 4"
, hint: "If the current live camera is PTZ, loads preset 4."
, actionDown: function () { BI_Hotkey_PtzPreset(4); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset5"
, value: "0|0|0|53" // 53: 5
, hotkey: true
, label: "Load Preset 5"
, hint: "If the current live camera is PTZ, loads preset 5."
, actionDown: function () { BI_Hotkey_PtzPreset(5); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset6"
, value: "0|0|0|54" // 54: 6
, hotkey: true
, label: "Load Preset 6"
, hint: "If the current live camera is PTZ, loads preset 6."
, actionDown: function () { BI_Hotkey_PtzPreset(6); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset7"
, value: "0|0|0|55" // 55: 7
, hotkey: true
, label: "Load Preset 7"
, hint: "If the current live camera is PTZ, loads preset 7."
, actionDown: function () { BI_Hotkey_PtzPreset(7); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset8"
, value: "0|0|0|56" // 56: 8
, hotkey: true
, label: "Load Preset 8"
, hint: "If the current live camera is PTZ, loads preset 8."
, actionDown: function () { BI_Hotkey_PtzPreset(8); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset9"
, value: "0|0|0|57" // 57: 9
, hotkey: true
, label: "Load Preset 9"
, hint: "If the current live camera is PTZ, loads preset 9."
, actionDown: function () { BI_Hotkey_PtzPreset(9); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset10"
, value: "0|0|0|48" // 48: 0
, hotkey: true
, label: "Load Preset 10"
, hint: "If the current live camera is PTZ, loads preset 10."
, actionDown: function () { BI_Hotkey_PtzPreset(10); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset11"
, value: "1|0|0|49" // 49: 1
, hotkey: true
, label: "Load Preset 11"
, hint: "If the current live camera is PTZ, loads preset 11."
, actionDown: function () { BI_Hotkey_PtzPreset(11); }
, category: "Hotkeys"
}
, {
key: "ui3_hotkey_ptzPreset12"
, value: "1|0|0|50" // 50: 2