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; } }