VoIP v1 implementation (#1161)
* Initial commit for VoIP v1 implementation * Added draft of event handlers for voip methods * Added event handlers for VoIP events, added rejectCall, added version tracking for call version for V0 and V1 compatibility * Added call events to the general message pipeline. Modified Call Reject mechanism * Added message delegates for new events. Modified hidden events. Updated handle events. * Updated implementation to keep track of calls on other devices * Fixed linting * Fixed code warnings * Fixed minor bugs * fixed ci * Added acceptNegotiation method definition when missing gstreamer * Fixed warnings * Fixed linting
This commit is contained in:
parent
8a4bb32b4a
commit
ac48c33286
19 changed files with 583 additions and 79 deletions
|
|
@ -219,6 +219,7 @@ utils::getMessageDescription(const TimelineEvent &event,
|
|||
using CallInvite = mtx::events::RoomEvent<mtx::events::voip::CallInvite>;
|
||||
using CallAnswer = mtx::events::RoomEvent<mtx::events::voip::CallAnswer>;
|
||||
using CallHangUp = mtx::events::RoomEvent<mtx::events::voip::CallHangUp>;
|
||||
using CallReject = mtx::events::RoomEvent<mtx::events::voip::CallReject>;
|
||||
using Encrypted = mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>;
|
||||
|
||||
if (std::holds_alternative<Audio>(event)) {
|
||||
|
|
@ -241,6 +242,8 @@ utils::getMessageDescription(const TimelineEvent &event,
|
|||
return createDescriptionInfo<CallAnswer>(event, localUser, displayName);
|
||||
} else if (std::holds_alternative<CallHangUp>(event)) {
|
||||
return createDescriptionInfo<CallHangUp>(event, localUser, displayName);
|
||||
} else if (std::holds_alternative<CallReject>(event)) {
|
||||
return createDescriptionInfo<CallReject>(event, localUser, displayName);
|
||||
} else if (std::holds_alternative<mtx::events::Sticker>(event)) {
|
||||
return createDescriptionInfo<mtx::events::Sticker>(event, localUser, displayName);
|
||||
} else if (auto msg = std::get_if<Encrypted>(&event); msg != nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue