File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ set(LIBDATACHANNEL_HEADERS
99
99
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/common.hpp
100
100
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/global .hpp
101
101
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/message.hpp
102
+ ${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/mediasample.hpp
102
103
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/peerconnection.hpp
103
104
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/reliability.hpp
104
105
${CMAKE_CURRENT_SOURCE_DIR} /include /rtc/rtc.h
Original file line number Diff line number Diff line change
1
+ /* *
2
+ * Copyright (c) 2019-2020 Paul-Louis Ageneau
3
+ *
4
+ * This Source Code Form is subject to the terms of the Mozilla Public
5
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
6
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
7
+ */
8
+
9
+ #ifndef RTC_FRAMEINFO_H
10
+ #define RTC_FRAMEINFO_H
11
+
12
+ #if RTC_ENABLE_MEDIA
13
+
14
+ namespace rtc {
15
+
16
+ struct RTC_CPP_EXPORT MediaSample : binary {
17
+ uint32_t timestamp = 0 ; // RTP Timestamp
18
+ };
19
+
20
+ } // namespace rtc
21
+
22
+ #endif // RTC_ENABLE_MEDIA
23
+ #endif // RTC_FRAMEINFO_H
Original file line number Diff line number Diff line change 10
10
#define RTC_MESSAGE_H
11
11
12
12
#include " common.hpp"
13
+ #include " mediasample.hpp"
13
14
#include " reliability.hpp"
14
15
15
16
#include < functional>
@@ -32,6 +33,7 @@ struct RTC_CPP_EXPORT Message : binary {
32
33
unsigned int stream = 0 ; // Stream id (SCTP stream or SSRC)
33
34
unsigned int dscp = 0 ; // Differentiated Services Code Point
34
35
shared_ptr<Reliability> reliability;
36
+ shared_ptr<MediaSample> media_sample;
35
37
};
36
38
37
39
using message_ptr = shared_ptr<Message>;
You can’t perform that action at this time.
0 commit comments