Add get_liveview command to camera module

This commit is contained in:
Kevin Fronczak
2020-06-08 17:05:54 +00:00
parent b029c32744
commit fd2e4ed9a4
+7
View File
@@ -178,6 +178,13 @@ class BlinkCamera:
self.sync.blink, url=self.clip, stream=True, json=False
)
def get_liveview(self):
"""Get livewview rtsps link."""
response = api.request_camera_liveview(
self.sync.blink, self.sync.network_id, self.camera_id
)
return response["server"]
def image_to_file(self, path):
"""
Write image to file.