From 76bff7572902c2c9853457f262a4460574767a5a Mon Sep 17 00:00:00 2001 From: Karol Konkol Date: Thu, 7 Nov 2024 16:02:03 +0100 Subject: [PATCH] Backward compatibility with old Media Events --- fishjam/peer_notifications.proto | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/fishjam/peer_notifications.proto b/fishjam/peer_notifications.proto index d75bc5e..1a6ccce 100644 --- a/fishjam/peer_notifications.proto +++ b/fishjam/peer_notifications.proto @@ -22,11 +22,17 @@ message PeerMessage { string data = 1; } + // Any type of WebRTC messages passed betweend FJ and peer + message MediaEvent { + string data = 1; + } + oneof content { Authenticated authenticated = 1; AuthRequest auth_request = 2; - media_events.peer.MediaEvent peer_media_event = 3; - media_events.server.MediaEvent server_media_event = 4; - RTCStatsReport rtc_stats_report = 5; + MediaEvent media_event = 3; + RTCStatsReport rtc_stats_report = 4; + media_events.peer.MediaEvent peer_media_event = 5; + media_events.server.MediaEvent server_media_event = 6; } }