Repository navigation
Chamadas de voz e vídeo em grupos - #570
Closed
JorisPortugal wants to merge 1 commit into
Closed
JorisPortugal wants to merge 1 commit into
JorisPortugal wants to merge 1 commit into
Conversation
Os botões de chamada da conversa de grupo agora iniciam uma chamada de voz ou de vídeo pelo mesmo caminho dos botões do WhatsApp Web: startWAWebVoipGroupCallFromChat, com CALL_FROM_UI.GROUP_CHAT_INFO e LOBBY_ENTRY_POINT_TYPE.GROUP_CHAT_INFO. O patch do servidor expõe POST /api/:session/call/group/offer; o endpoint passado é "group/offer", sem duplicar o prefixo /call. Uma oferta de grupo recebida passa a ser atendível pelo mesmo caminho nativo acceptCall das chamadas individuais, com o mesmo botão, atalho global e monitor de áudio. O registro da chamada ativa usa o JID do grupo, nunca o do participante que tocou ou falou, para que os eventos de estado de qualquer participante continuem a corresponder à chamada. A enumeração de câmeras passa a aceitar a listagem do FFmpeg incluído no WinZapp, que não imprime o cabeçalho "DirectShow video devices" e marca cada dispositivo com (video)/(audio). Sem isso, uma câmera real era reportada como "No camera found" e o vídeo saía apenas a receber. Testes: tests/test_call_control_api_patch.py, test_call_hotkeys.py, test_call_video.py, test_call_video_device_settings.py, test_call_video_upgrade.py, test_incoming_call_alert.py, test_incoming_call_answer_without_video.py, test_outgoing_call_teardown.py e test_sync_voice_call_button.py.
Owner
|
Obrigado, @JorisPortugal! Esta PR tinha conflito com a main (changelogs) e é de fork, então recriei a branch aqui com os seus commits preservados em #571. Fechando esta em favor dela. Generated by Claude Code |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
O que muda
startWAWebVoipGroupCallFromChat, comCALL_FROM_UI.GROUP_CHAT_INFOeLOBBY_ENTRY_POINT_TYPE.GROUP_CHAT_INFO).acceptCalldas chamadas individuais, com o mesmo botão, atalho global e monitor de áudio.DirectShow video devicese marca cada dispositivo com(video)/(audio). Sem isso, uma câmera real era reportada comoNo camera founde o vídeo saía apenas a receber.API
POST /api/:session/call/group/offer, que recebegroupJideisVideo._post_call_controlégroup/offer(sem duplicar o prefixo/call); há um teste de regressão para o 404 que isso causou durante o desenvolvimento.Testes
tests/test_call_video.pyetests/test_call_video_device_settings.pytests/test_call_video_upgrade.pyetests/test_call_hotkeys.pytests/test_call_control_api_patch.pyetests/test_outgoing_call_teardown.pytests/test_incoming_call_alert.py,tests/test_incoming_call_answer_without_video.pyetests/test_sync_voice_call_button.pytests/test_changelogs_in_sync.pySubconjunto executado após o commit: 163 passed, 4 skipped.
Notas
V3.0.0.0em todas as 7 línguas.CLAUDE.md; fica assim até à revisão.