Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix arguments to wait_for_command in request_camera_liveview #979

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

harveypham
Copy link

Description:

Prepare a correct json package for wait_for_command inside request_camera_liveview

Related issue (if applicable): fixes #

Checklist:

  • Local tests with tox run successfully PR cannot be meged unless tests pass
  • Changes tested locally to ensure platform still works as intended
  • Tests added to verify new code works

@mkmer
Copy link
Contributor

mkmer commented Aug 9, 2024

Have you found a way to play the live view link? To this point I'm not aware of a program that plays back the link.

@harveypham
Copy link
Author

@mkmer No luck yet. After properly waited for liveview command, this is the result that I get:

{'complete': True, 'status': 1, 'status_msg': 'Live view failed', 'status_code': 523, 'commands': [{'id': 843305822, 'created_at': '2024-08-14T22:13:56+00:00', 'updated_at': '2024-08-14T22:13:58+00:00', 'deleted_at': None, 'execute_time': '2024-08-14T22:13:56+00:00', 'command': 'lv_relay', 'state_stage': 'dev', 'stage_rest': '2024-08-14T22:13:56+00:00', 'stage_cs_db': '2024-08-14T22:13:56+00:00', 'stage_cs_sent': '2024-08-14T22:13:57+00:00', 'stage_sm': '2024-08-14T22:13:57+00:00', 'stage_dev': '2024-08-14T22:13:58+00:00', 'stage_is': None, 'stage_lv': '2024-08-14T22:14:29+00:00', 'stage_vs': None, 'state_condition': 'error', 'sm_ack': 1, 'lfr_ack': 0, 'sequence': 739, 'attempts': 0, 'transaction': 'uEGGujbDEZeIAN72', 'player_transaction': 'JXBZoZMdKKkLxGQv', 'server': 'rtsps://lv3-u018.immedia-semi.com:443/uEGGujbDEZeIAN72', 'duration': 0, 'by_whom': 'Computer - ', 'diagnostic': False, 'debug': '{"lfr_ok":[16212,2,739,210,137,156,195,0]},LV906', 'opts_1': 0, 'target': 'camera', 'target_id': 11827, 'trace_parent': None, 'sync_module_id': 10737, 'parent_command_id': None, 'camera_id': 11827, 'siren_id': None, 'firmware_id': None, 'network_id': 16212, 'account_id': 15211}], 'media_id': None}

@mkmer
Copy link
Contributor

mkmer commented Aug 15, 2024

So now all you need to do is connect to the rtsps: address, but i have yet to find a video player that knows how to connect to a secure rtsp link. Maybe you will have some luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants