Commit graph

28 commits

Author SHA1 Message Date
David Ventura
c80b6b0a67 Add content-length & newline before boundary 2024-10-02 22:43:53 +02:00
David Ventura
04fb1a8e4c configure timeout 2024-05-07 12:06:46 +02:00
Adriano Cunha
4a6a58bd7b
Fix crash in http_server (#25)
Set camera config before referencing it. Also set audio default to true.
2024-05-06 22:09:03 +02:00
David Ventura
d5d4161dd8 implement settings support 2024-05-05 17:39:52 +02:00
David Ventura
f5da7a34bd reduce loglevel 2024-05-02 22:28:55 +02:00
David Ventura
c51e4f8a7a
implement rotation via injecting exif headers (#19) 2024-05-02 13:18:28 +02:00
Adriano Cunha
6ca18b057b
Fix sending favicon in http_server (#21)
`favicon` is now an array, and `end()` expects a Buffer or String.
2024-05-02 09:50:08 +02:00
David Ventura
2ce568c019 trim serial/name mapping; add a log message 2024-05-01 13:17:37 +02:00
David Ventura
9654dc2841 implement logging properly 2024-05-01 13:06:27 +02:00
David Ventura
9c19c05274 include files at build time 2024-05-01 12:44:52 +02:00
Adriano Cunha
690c1b4146
More features in the HTTP server (#16)
* Added more features to HTTP server

* Added a title to the multi-camera view page.
* Support naming cameras through a simple mapping using a text file.
* Updated some logging messages to be more verbose (and match those in pair.ts).
* Confirmed the charging status and battery level values reported back by DevStatusAck.
* Log camera status (charging, battery, Wifi strength) when connected.

* More updates to HTTP server

* Deal with Web Audio autoplay policy by starting camera on mute and adding a button to toggle the audio stream.
* Add a favicon so the server tan can be easily spotted.

The favicon file is a 48x48 32bpp ICO file, gzipped.

* Update README.md

* Describe flags and enable camera audio by default.

* Update audio button based on state change

* Update description of discovery_ip in bin.ts

* Update session start message in http_server.ts

* Update README.md

Update flags and note about --discovery_ip.
2024-04-30 16:18:10 +02:00
David Ventura
639a78419e refactor to allow bundling 2024-04-26 10:32:56 +02:00
Adriano Cunha
783e61cba2
Set discovery_ip in http_server.ts back to 192.168.1.255
The previous value (192.168.40.104) seems to be leftover debugging, as it's not a broadcast address and thus causes the server not to find any cameras.
2024-04-23 22:12:41 -07:00
DavidVentura
737f0248b2 add support for audio streaming 2024-02-02 12:06:44 +01:00
DavidVentura
25ae4fa72e attempt to re-stitch together JPEGs at the recovery markers upon dataloss 2024-02-01 17:56:27 +01:00
DavidVentura
2f2b6d302a refactor curimage into a slice of buffers & pass options via session 2024-02-01 17:56:08 +01:00
DavidVentura
7d2160f07f support multiple streams concurrently 2024-01-31 18:06:52 +01:00
DavidVentura
9685f8008e allow onLogin CB to be specified 2024-01-31 16:32:06 +01:00
DavidVentura
f7eb287d5b add a trivial home page to link multiple cameras 2024-01-31 16:21:03 +01:00
DavidVentura
c12c432e71 refactor for multiple sessions 2024-01-31 16:11:22 +01:00
DavidVentura
2d2e56231a rename 2024-01-31 12:16:22 +01:00
DavidVentura
eecae5c9bf nicer connected check 2024-01-31 12:14:20 +01:00
DavidVentura
d70bef918f make audio optional 2024-01-31 12:11:32 +01:00
DavidVentura
7bdcc54bc1 abstract server a bit better 2024-01-31 12:01:00 +01:00
DavidVentura
9d671f18c9 abstract server a bit better 2024-01-31 11:56:33 +01:00
DavidVentura
971f741d35 refuse connections if no cameras are available 2024-01-30 13:46:52 +01:00
DavidVentura
ebb9d8b081 send P2pAlive if havent heard from the other side for 500ms 2024-01-29 22:05:53 +01:00
DavidVentura
3f217d5c32 add mjpeg server 2024-01-29 12:16:28 +01:00