Files
home-assistant-core/homeassistant/components/camera
Colin O'Dell 8200827a19 Add support for direct MJPEG streams from Amcrest cameras (#5217)
* Add support for direct MJPEG streams from Amcrest cameras

The previous implementation relied on using snapshots from the camera. However,
some Amcrest models cannot keep up with the large number of requests and
instead timeout, resulting in no video stream. These cameras do provide MJPEG
streams though, so this commit adds the option to use these instead of creating
one from snapshots.

Unfortunately, some cameras on newer firmwares do not support MJPEG streams at
high resolution - only at low resolution.

By providing users with both a `resolution` and `stream_source` option, we can
allow them to choose whichever combination works for their particular model
and firmware version.

* Close the stream instead of releasing it

* Close stream without creating a task

* Handle client aborts

* fix lint
2017-01-15 20:37:24 +01:00
..
2016-08-26 14:50:32 -06:00
2015-11-28 23:16:20 -08:00
2015-11-28 23:16:20 -08:00
2015-11-28 23:16:20 -08:00
2015-11-28 23:16:20 -08:00
2016-07-12 16:46:29 +02:00
2016-10-30 22:18:53 +01:00
2016-11-30 13:05:58 -08:00
2016-12-22 20:22:07 +01:00
2016-12-14 18:45:05 +01:00
2017-01-04 19:55:16 +01:00