OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
710 bool voiceActivity; | 710 bool voiceActivity; |
711 uint8_t audioLevel; | 711 uint8_t audioLevel; |
712 | 712 |
713 // For Coordination of Video Orientation. See | 713 // For Coordination of Video Orientation. See |
714 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ | 714 // http://www.etsi.org/deliver/etsi_ts/126100_126199/126114/12.07.00_60/ |
715 // ts_126114v120700p.pdf | 715 // ts_126114v120700p.pdf |
716 bool hasVideoRotation; | 716 bool hasVideoRotation; |
717 VideoRotation videoRotation; | 717 VideoRotation videoRotation; |
718 | 718 |
719 PlayoutDelay playout_delay = {-1, -1}; | 719 PlayoutDelay playout_delay = {-1, -1}; |
720 | |
721 // For identification of a stream when ssrc is not signaled. See | |
722 // https://tools.ietf.org/html/draft-ietf-avtext-rid-09 | |
723 // TODO(danilchap): Update url from draft to release version. | |
724 // Stream id is limited to 16 bytes because it is the maximum length | |
725 // that can be encoded with one-byte header extensions. | |
726 size_t stream_id_size = 0; | |
727 char stream_id[16]; | |
nisse-webrtc
2017/04/10 07:15:27
This is intended as an arbitrary octet string, whi
danilchap
2017/04/10 08:39:41
according to spec valid characters are [0-9A-Za-z]
nisse-webrtc
2017/04/10 09:18:33
Then one alternative would be to always zero-pad t
danilchap
2017/04/10 11:44:16
I've created a dedicated class StreamId and moved
| |
728 size_t repaired_stream_id_size = 0; | |
729 char repaired_stream_id[16]; | |
720 }; | 730 }; |
721 | 731 |
722 struct RTPHeader { | 732 struct RTPHeader { |
723 RTPHeader(); | 733 RTPHeader(); |
724 | 734 |
725 bool markerBit; | 735 bool markerBit; |
726 uint8_t payloadType; | 736 uint8_t payloadType; |
727 uint16_t sequenceNumber; | 737 uint16_t sequenceNumber; |
728 uint32_t timestamp; | 738 uint32_t timestamp; |
729 uint32_t ssrc; | 739 uint32_t ssrc; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
835 enum class RtcpMode { kOff, kCompound, kReducedSize }; | 845 enum class RtcpMode { kOff, kCompound, kReducedSize }; |
836 | 846 |
837 enum NetworkState { | 847 enum NetworkState { |
838 kNetworkUp, | 848 kNetworkUp, |
839 kNetworkDown, | 849 kNetworkDown, |
840 }; | 850 }; |
841 | 851 |
842 } // namespace webrtc | 852 } // namespace webrtc |
843 | 853 |
844 #endif // WEBRTC_COMMON_TYPES_H_ | 854 #endif // WEBRTC_COMMON_TYPES_H_ |
OLD | NEW |