-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(camera): WebRTC and Streaming URL impl.
- Loading branch information
Showing
6 changed files
with
69 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
* Copyright (c) 2019-2023 Sinric. All rights reserved. | ||
* Licensed under Creative Commons Attribution-Share Alike (CC BY-SA) | ||
* | ||
* This file is part of the Sinric Pro (https://github.com/sinricpro/) | ||
""" | ||
|
||
from ._sinricpro_constants import SinricProConstants | ||
|
||
class CameraStreamController: | ||
|
||
async def get_webrtc_answer(self, jsn, get_webrtc_answer_callback): | ||
self.offer = jsn.get("payload").get("value").get("offer") | ||
|
||
return get_webrtc_answer_callback(jsn.get("payload").get(SinricProConstants.DEVICEID), | ||
self.offer) | ||
|
||
async def get_camera_stream_url(self, jsn, get_camera_stream_url_callback): | ||
self.protocol = jsn.get("payload").get("value").get("protocol") | ||
|
||
return get_camera_stream_url_callback(jsn.get("payload").get(SinricProConstants.DEVICEID), | ||
self.protocol) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.