Commit Graph

19473 Commits (e5b858a3c372eddc6ec51430e412ec27a8d2b3c1)

Author SHA1 Message Date
Isaac Connor e4a92f5d62 Add const for ffmpeg5. 2022-04-28 15:35:45 -04:00
Isaac Connor 6e48a9c692 Don't set flags |= AVFMT_TS_NONSTRICT because we can't in ffmpeg5 2022-04-28 15:18:03 -04:00
Isaac Connor abc4643bdf Clear statusCmdTimer when changing img.src. Only start it if it was set before. Use toLocaleString to format fps values 2022-04-28 11:00:24 -04:00
Isaac Connor 818428b51a Deprecate php-apc and php-apc-bc 2022-04-28 14:59:03 +00:00
Isaac Connor 6e6305bbca set image height to value of height dropdown, which is either a pixel value or auto, which is appropriate 2022-04-28 10:38:29 -04:00
Isaac Connor 90953cdfcf Remove CMD constants as they are in skin.js.php now 2022-04-28 10:38:01 -04:00
Isaac Connor 8d1007246c Add VARPLAY 2022-04-28 10:37:41 -04:00
Isaac Connor 68367d8d61 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 10:37:29 -04:00
Isaac Connor 1c2c364e1f Merge from debian patch 0001-Adapt-apache2.conf-to-work-out-of-the-box.patch 2022-04-28 10:24:00 -04:00
Isaac Connor cd457ae03f Fix eslint 2022-04-28 09:17:11 -04:00
Isaac Connor 8bdaaf097c sync update the style of the surroundin image stream div. Add id and class. Include MonitorStream.js 2022-04-27 21:52:48 -04:00
Isaac Connor bdd2d171c6 handle undefined HTTP_REFERER, and escape zone name 2022-04-27 21:52:31 -04:00
Isaac Connor 6d1c759dab export the layout id of FreeForm to javascript land 2022-04-27 21:51:50 -04:00
Isaac Connor 95590ccd58 remove CMD_ and STATE_ defines because they are global now 2022-04-27 21:51:07 -04:00
Isaac Connor 8e6f9401c6 Scale is now '0' not 'auto' 2022-04-27 21:50:40 -04:00
Isaac Connor 001f9a5e9d add statusRefreshTimeout and connKey 2022-04-27 21:50:19 -04:00
Isaac Connor 11ea5f2de5 Use MonitorStream fo setting img.scale. 2022-04-27 21:49:55 -04:00
Isaac Connor 00b80cbe69 sync update the style of the surroundin image stream div. Add id and class. Include MonitorStream.js 2022-04-27 21:47:24 -04:00
Isaac Connor 3cbca32e36 remove #imageFeed style has been moved to global .imageFeed 2022-04-27 21:46:17 -04:00
Isaac Connor e7928a449d Apply .imageFeed img styles globally 2022-04-27 21:45:23 -04:00
Isaac Connor fc78133733 Only apply height styles to the stream img. 2022-04-27 21:44:55 -04:00
Isaac Connor f0fb1997db Remove STATE_ and CMD defines as they are in skin.js.php now. 2022-04-27 17:47:08 -04:00
Isaac Connor b37b5fcae9 Remove STATE_ and CMD defines as they are in skin.js.php now. 2022-04-27 17:46:48 -04:00
Isaac Connor 7a0af0cac1 Clear timers around changing img.src. Define statusCmdTime at the top. 2022-04-27 17:45:55 -04:00
Isaac Connor 5c96283fd9 Remove STATE_ and CMD defines as they are in skin.js.php now. quote connKey so that it retains leading 0s. Should quiet some zms errors. 2022-04-27 17:45:08 -04:00
Isaac Connor ba24a9be02 Use MonitorStream functions more in montage, including setStreamScale. Fix behaviour of Width/Height/Scale/Layout buttons. 2022-04-27 17:44:09 -04:00
Isaac Connor 6e7f99b7d2 remove auth_hash, it is global 2022-04-27 17:43:10 -04:00
Isaac Connor 9896b57889 split changeScale into applyScale. Fix behaviour when selecting width/height/scale. Fix width:100% not persisting 2022-04-27 17:42:51 -04:00
Isaac Connor 6f0c726926 remove :'s in labels to be consistent 2022-04-27 17:42:02 -04:00
Isaac Connor 67d62a6d01 Set width of 200px for cycle sidebar 2022-04-27 17:41:43 -04:00
Isaac Connor c35303fc63 remove CMD_ANALYZE and CMD_MAXFPS. They havn't been merged yet 2022-04-27 17:41:24 -04:00
Isaac Connor 65c9df9fca Rough in lots of stuff from master. setStreamScale to set src of stream img's. Handle ajax errors better. Send CMD_QUIT when changing img.src. These changes reduce errors from zms. 2022-04-27 17:40:51 -04:00
Isaac Connor 2969a00dcb Remove loading=lazy as it causes problems with ajax Querying 2022-04-27 17:39:33 -04:00
Isaac Connor a056c5d1b8 Add early test for zm_terminate after processing comms 2022-04-27 17:38:48 -04:00
Isaac Connor 6ff0ce4793 Add STATE_UNKOWN == -1 2022-04-27 17:38:26 -04:00
Isaac Connor d8ed0d2774 Move CMD_ defines to skin.js.php so that they are available everywhere 2022-04-27 16:00:47 -04:00
Isaac Connor 3e627a368d setScale to auto 2022-04-27 15:46:34 -04:00
Isaac Connor 1a21732e31 Remove code handling failure to setStreamStart. This is now ok and handled in runStream 2022-04-27 15:17:00 -04:00
Isaac Connor 3089839f83 Disconnect and Reconnect in PrimeCapture instead of in constructor and descructor. Fixes camera not reconnecting. 2022-04-27 15:16:02 -04:00
Isaac Connor cc0f095c38 Remove check for pktQueue.size(). We know that there are packets in it 2022-04-27 15:15:30 -04:00
Isaac Connor 3ae7352c37 Remove debugging 2022-04-27 15:15:05 -04:00
Isaac Connor 305042ed67 Redo the body of event::Run() so that we don't hold the lock while actually processing the packets. Only around queue manipulation. Should free up analysis thread. 2022-04-27 10:59:52 -04:00
Isaac Connor c6f4af0dca Don't exit if we fail to set stream start 2022-04-26 14:38:53 -04:00
Isaac Connor c902433c82 Debug log when failed sending 2022-04-26 14:38:37 -04:00
Isaac Connor ff6c0543fb Use notify_all instead of notify_one. If the analysis thread wakes up first, can then wait on packet and decoder won't wake up until next capture 2022-04-26 14:36:26 -04:00
Isaac Connor b819008673 Add a notify_all before waiting in case decoder is waiting in packetqueue 2022-04-26 14:35:43 -04:00
Isaac Connor 9406aa2ef1 set decoded to false, not 0 2022-04-26 14:26:41 -04:00
Isaac Connor ff7b9caf55 Move the tests for monitor connectedness down into the main while loop so that we also check for feof etc. The gist is to stay running even if monitor is not running. We will wait for it to come back 2022-04-26 14:26:26 -04:00
Isaac Connor ae42e6d015 Fixup UpdateFPS to not use std::chrono stuff. Use packetqueue.unlock which signals. Should fix lockups 2022-04-26 14:12:03 -04:00
Isaac Connor 8a048c06da Merge UpdateCaptureFPS and UpdateAnalysisFPS into UpdateFPS and call it from zmc after capture. 2022-04-26 13:55:24 -04:00