OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Protocol for audio messages. | 5 // Protocol for audio messages. |
6 | 6 |
7 syntax = "proto2"; | 7 syntax = "proto2"; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 VIDEO_PACKET_SENT_TO_PACER = 20; | 44 VIDEO_PACKET_SENT_TO_PACER = 20; |
45 AUDIO_PACKET_SENT_TO_NETWORK = 21; | 45 AUDIO_PACKET_SENT_TO_NETWORK = 21; |
46 VIDEO_PACKET_SENT_TO_NETWORK = 22; | 46 VIDEO_PACKET_SENT_TO_NETWORK = 22; |
47 AUDIO_PACKET_RETRANSMITTED = 23; | 47 AUDIO_PACKET_RETRANSMITTED = 23; |
48 VIDEO_PACKET_RETRANSMITTED = 24; | 48 VIDEO_PACKET_RETRANSMITTED = 24; |
49 // Receiver-side packet events. | 49 // Receiver-side packet events. |
50 AUDIO_PACKET_RECEIVED = 25; | 50 AUDIO_PACKET_RECEIVED = 25; |
51 VIDEO_PACKET_RECEIVED = 26; | 51 VIDEO_PACKET_RECEIVED = 26; |
52 DUPLICATE_AUDIO_PACKET_RECEIVED = 27; | 52 DUPLICATE_AUDIO_PACKET_RECEIVED = 27; |
53 DUPLICATE_VIDEO_PACKET_RECEIVED = 28; | 53 DUPLICATE_VIDEO_PACKET_RECEIVED = 28; |
| 54 // Sender-side generic event. |
| 55 AUDIO_RTCP_PACKET_RECEIVED = 29; |
| 56 VIDEO_RTCP_PACKET_RECEIVED = 30; |
54 } | 57 } |
55 | 58 |
56 // Each log will contain one |LogMetadata|. | 59 // Each log will contain one |LogMetadata|. |
57 message LogMetadata { | 60 message LogMetadata { |
58 // |true| if the events are related to audio. |false| if they are related to | 61 // |true| if the events are related to audio. |false| if they are related to |
59 // video. | 62 // video. |
60 optional bool is_audio = 1; | 63 optional bool is_audio = 1; |
61 | 64 |
62 // Used as a reference for all event entries. | 65 // Used as a reference for all event entries. |
63 // i.e. the original RTP timestamp for each event will be | 66 // i.e. the original RTP timestamp for each event will be |
(...skipping 27 matching lines...) Expand all Loading... |
91 optional int32 packet_id = 1; | 94 optional int32 packet_id = 1; |
92 repeated EventType event_type = 2 [packed = true]; | 95 repeated EventType event_type = 2 [packed = true]; |
93 repeated int64 event_timestamp_ms = 3 [packed = true]; | 96 repeated int64 event_timestamp_ms = 3 [packed = true]; |
94 } | 97 } |
95 | 98 |
96 message AggregatedPacketEvent { | 99 message AggregatedPacketEvent { |
97 optional uint32 relative_rtp_timestamp = 1; | 100 optional uint32 relative_rtp_timestamp = 1; |
98 repeated BasePacketEvent base_packet_event = 2; | 101 repeated BasePacketEvent base_packet_event = 2; |
99 }; | 102 }; |
100 | 103 |
OLD | NEW |