Commit Graph

60 Commits

Author SHA1 Message Date
Isaac Connor
4ab58f5f22 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-06-16 09:58:49 -04:00
Isaac Connor
58fedd8c35 Fix streamQuery => streamCmdQuery. Fixes #3507 2022-06-16 09:58:26 -04:00
Isaac Connor
17562671c1 fix eslint 2022-06-15 13:18:11 -04:00
Isaac Connor
a5cbe65d70 watchdog is not available everywhere yet. comment out its use 2022-06-15 13:08:38 -04:00
Isaac Connor
5188346086 Institute a status timer to be used when not streaming from zms. 2022-06-15 12:34:55 -04:00
Isaac Connor
ba2b18f8a9 Fix eslint 2022-06-03 15:00:23 -04:00
Isaac Connor
edfaffb88f Only set onclick if a new function is given 2022-06-02 15:11:59 -04:00
Isaac Connor
c68f9f5fe8 Include connKey is debug line 2022-06-01 08:58:58 -04:00
Isaac Connor
516967e054 Don't set width if it already has a value. Fix state setting on state label. 2022-05-30 13:37:27 -04:00
Isaac Connor
331aca149b If the response contained a message, alert it 2022-05-30 10:34:08 -04:00
Isaac Connor
e1c80a710b Use global config vale for ZM_WEB_POPUP_ON_ALARM 2022-05-30 10:17:20 -04:00
Isaac Connor
544c1a248c Only set monitor_frame width if it is auto 2022-05-26 13:00:13 -04:00
Isaac Connor
53025e1572 set src='' before new value. Firefox needs it. set scale to 100 when 0, just for consistency. Remove stream_frame which is unused, fixup parenthesis 2022-05-26 12:37:36 -04:00
Isaac Connor
57bd502bb9 test for 0 before setting width and height 2022-05-26 12:32:26 -04:00
Isaac Connor
082fff850f Re-instate setting the class of the monitor div on alarm 2022-05-26 12:28:12 -04:00
Isaac Connor
a7f586a46d fix eslint 2022-05-13 11:02:12 -04:00
Isaac Connor
0ede5cec85 remove duplication of onload, onerror. Introduce a kill function to be called when we browse away to stop all the ajax. 2022-05-13 10:33:35 -04:00
Isaac Connor
59898caf59 Start the query status timer on img.load 2022-05-12 11:00:50 -04:00
Isaac Connor
eb3806f482 Don't close initial stream. The QUIT gets lost. Add onload debugging 2022-05-07 11:39:17 -04:00
Isaac Connor
085da5c1fb fix eslint 2022-05-02 10:01:14 -04:00
Isaac Connor
01a5ab2621 Replace msieVer with something more modern. Don't change monitor_=frame.style.width when auto-scaling and no bottom element. We do not want to change the css, just calculate a scale 2022-04-29 18:13:25 -04:00
Isaac Connor
dd95ebb34a ZM_SOUND_ON_ALARM is actually ZM_WEB_SOUND_ON_ALARM 2022-04-29 17:52:51 -04:00
Isaac Connor
99fa0a71cf SOUND_ON_ALARM is now included in ZM_SOUND_ON_ALARM 2022-04-29 17:51:02 -04:00
Isaac Connor
9e39cbf3e9 add px's where appropriate, document setScale a bit more, use streamCOmmand for statusQuery 2022-04-28 19:18:40 -04:00
Isaac Connor
ac3fa65577 MonitorStream doesn't know about MONTAGE. Hiding fields should be done in php. Use toLocaleString to format fps values with 1 decimal. 2022-04-28 17:05:32 -04:00
Isaac Connor
2fb44769b6 split setScale into setStreamScale so we can set the img.src without altering the frame 2022-04-22 15:50:55 -04:00
Isaac Connor
0d176b133a Stop and restart statusCmdReq around rescaling img stream. Deprecate auto as a value for scale. Make another attempt as sanely applying scale 2022-04-22 12:34:49 -04:00
Isaac Connor
8170ce2b8d Check error instead of textStatus for Unauthorized. Set streamCmdParams.auth when auth_hash changes. Fixes auth timing out in ajax 2022-04-20 18:47:57 -04:00
Isaac Connor
c2dcaab744 fix eslint 2022-04-20 10:00:47 -04:00
Isaac Connor
0501f464c5 Fix scale <0 and send zms a quit command because safari will never close the stream. Fixes no image on safari 2022-04-19 19:30:27 -04:00
Isaac Connor
21716e994b Keep better track of timers. Add img_onerror to report when image breaks. setScale is a mess. Add some more code to guess image scale. Browser can't handle 4k jpeg streams. scaling is a must. 2022-04-19 16:56:21 -04:00
Isaac Connor
a1f0ac2e48 width=auto,height=auto,scale=fixed operates the same as scale=auto. Don't set height. Height is ONLY set when a specific height is chosen. Which may go away for an aspect ratio dropdown instead. 2022-04-10 17:30:34 -04:00
Isaac Connor
8db08f5a10 Merge branch 'master' of github.com:ZoneMinder/zoneminder 2022-03-04 12:09:44 -05:00
Isaac Connor
920f5470a8 Don't set width&height on img. img is always 100% of container. Don't show zoom unless it is != 1.0. Only update buttons if there is a change, to reduce redraws 2022-03-04 12:07:32 -05:00
Jonathan Bennett
c28c043773 Adds support for Janus 1.x 2022-02-28 18:05:17 -06:00
Jonathan Bennett
1749afc8e2 Add additional Firefox streaming workaround 2022-02-28 14:17:19 -06:00
Isaac Connor
a40b305065 Merge branch 'master' into replace_function_concept 2022-02-20 09:52:03 -05:00
Isaac Connor
002b2c39aa fix button assignments. Don't abort ajax, as it might be important 2022-02-18 17:11:18 -05:00
Isaac Connor
dcf6e5da46 If there is an ajax error, and the error is unauthorized, then reload the page. 2022-02-08 11:20:54 -05:00
Isaac Connor
8e62562afd Move onclick to the surrounding div instead of the img. Fixes clicking on montage 2022-01-26 21:39:29 -05:00
Jonathan Bennett
2e9bda1af1 Add firefox specific workaround for Janus streaming 2022-01-21 23:21:41 -06:00
Jonathan Bennett
52e48c02b6 Add janus_path and janus_secret, allowing for more secure and flexible Janus installs 2022-01-21 22:23:41 -06:00
Isaac Connor
22b6337752 Merge code from watch.js. Add an ajaxQueue. Link up buttons from UI 2022-01-20 11:47:28 -05:00
Isaac Connor
388735e942 Fix relating auth_hash causing repeated reloads. If https, then assume a reverse proxy setup to janus. If video feed is not an img, log it and return 2022-01-18 23:02:26 -05:00
Isaac Connor
24c2efeb00 fix eslint 2022-01-17 16:19:27 -05:00
Jonathan Bennett
59056b4103 Refactor Montage view js -- Janus in MonitorStream 2022-01-15 01:33:17 -06:00
Isaac Connor
c8bc0661b1 Have to clear src before resetting or some browsers won't load the new image 2022-01-08 12:14:28 -05:00
Isaac Connor
939f165b22 rename analyze to analyse 2022-01-07 16:05:52 -05:00
Isaac Connor
6f5eee6c0f Add show_analyze_frames function to tell zms to send analysis frames 2022-01-07 13:53:49 -05:00
Isaac Connor
474f65cff3 Implement getElement, setScale in MonitorStream.js 2021-11-10 14:20:19 -05:00