Repository navigation
Chamadas de voz e vídeo em grupos - #571
Merged
Merged
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.
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.
Requested by Gabriel · project thread
Substitui #570, de @JorisPortugal (PR de fork: não dá para empurrar na branch do autor, e ela tinha conflito de changelog com a main). Os commits e a autoria dele foram mantidos; a única adição é o merge da main, resolvendo o conflito nos 7 changelogs (as entradas dos dois lados foram mantidas). Obrigado, Joris!
O que muda
startWAWebVoipGroupCallFromChat(mesmo caminho do WhatsApp Web).POST /api/:session/call/group/offer.camera_namesaceita a listagem do FFmpeg incluído (sem cabeçalho, com(video)/(audio)).Revisado: sem código suspeito; só módulos internos do WhatsApp Web e rotas locais autenticadas.
Generated by Claude Code