(self)
return link
Get liveview link.
Get liveview link.
Get liveview link .
def get_liveview(self):
        """Get liveview link."""
        url = f"{self.sync.urls.base_url}/api/v1/accounts/{self.sync.blink.account_id}/networks/{self.network_id}/lotus/{self.camera_id}/liveview"
        response = api.http_post(self.sync.blink, url)
        server = response["server"]
        server_split = server.split(":")
        server_split[0] = "rtsps:"
        link = "".join(server_split)
        return link
def get_liveview ( self ) : url = f"{self.sync.urls.base_url}/api/v1/accounts/{self.sync.blink.account_id}/networks/{self.network_id}/lotus/{self.camera_id}/liveview" response = api . http_post ( self . sync . blink , url ) server = response [ "server" ] server_split = server . split ( ":" ) server_split [ 0 ] = "rtsps:" link = "" . join ( server_split ) return link