react-native-webrtc-nitro 1.2.0 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/configuration.hpp +1 -1
  2. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/rtc.h +9 -1
  3. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/rtcpreceivingsession.hpp +26 -1
  4. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/rtp.hpp +1 -1
  5. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/rtppacketizationconfig.hpp +9 -0
  6. package/3rdparty/output/android/libdatachannel/arm64-v8a/include/rtc/version.h +3 -3
  7. package/3rdparty/output/android/libdatachannel/arm64-v8a/lib/libdatachannel.so +0 -0
  8. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/configuration.hpp +1 -1
  9. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/rtc.h +9 -1
  10. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/rtcpreceivingsession.hpp +26 -1
  11. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/rtp.hpp +1 -1
  12. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/rtppacketizationconfig.hpp +9 -0
  13. package/3rdparty/output/android/libdatachannel/armeabi-v7a/include/rtc/version.h +3 -3
  14. package/3rdparty/output/android/libdatachannel/armeabi-v7a/lib/libdatachannel.so +0 -0
  15. package/3rdparty/output/android/libdatachannel/x86/include/rtc/configuration.hpp +1 -1
  16. package/3rdparty/output/android/libdatachannel/x86/include/rtc/rtc.h +9 -1
  17. package/3rdparty/output/android/libdatachannel/x86/include/rtc/rtcpreceivingsession.hpp +26 -1
  18. package/3rdparty/output/android/libdatachannel/x86/include/rtc/rtp.hpp +1 -1
  19. package/3rdparty/output/android/libdatachannel/x86/include/rtc/rtppacketizationconfig.hpp +9 -0
  20. package/3rdparty/output/android/libdatachannel/x86/include/rtc/version.h +3 -3
  21. package/3rdparty/output/android/libdatachannel/x86/lib/libdatachannel.so +0 -0
  22. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/configuration.hpp +1 -1
  23. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/rtc.h +9 -1
  24. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/rtcpreceivingsession.hpp +26 -1
  25. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/rtp.hpp +1 -1
  26. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/rtppacketizationconfig.hpp +9 -0
  27. package/3rdparty/output/android/libdatachannel/x86_64/include/rtc/version.h +3 -3
  28. package/3rdparty/output/android/libdatachannel/x86_64/lib/libdatachannel.so +0 -0
  29. package/3rdparty/output/ios/ffmpeg.xcframework/ios-arm64/libffmpeg.a +0 -0
  30. package/3rdparty/output/ios/ffmpeg.xcframework/ios-arm64_x86_64-simulator/libffmpeg.a +0 -0
  31. package/3rdparty/output/ios/libdatachannel.xcframework/Info.plist +5 -5
  32. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/configuration.hpp +1 -1
  33. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/rtc.h +9 -1
  34. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/rtcpreceivingsession.hpp +26 -1
  35. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/rtp.hpp +1 -1
  36. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/rtppacketizationconfig.hpp +9 -0
  37. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/Headers/rtc/version.h +3 -3
  38. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64/libdatachannel.a +0 -0
  39. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/configuration.hpp +1 -1
  40. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/rtc.h +9 -1
  41. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/rtcpreceivingsession.hpp +26 -1
  42. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/rtp.hpp +1 -1
  43. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/rtppacketizationconfig.hpp +9 -0
  44. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/Headers/rtc/version.h +3 -3
  45. package/3rdparty/output/ios/libdatachannel.xcframework/ios-arm64_x86_64-simulator/libdatachannel.a +0 -0
  46. package/README.md +563 -13
  47. package/package.json +1 -1
@@ -74,6 +74,15 @@ public:
74
74
  uint16_t playoutDelayMin = 0;
75
75
  uint16_t playoutDelayMax = 0;
76
76
 
77
+ // https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/rtp-hdrext/color-space/
78
+ uint8_t colorSpaceId = 0; // the negotiated ID of color space header extension
79
+ uint8_t colorChromaSitingHorz = 0; // unspecified
80
+ uint8_t colorChromaSitingVert = 0; // unspecified
81
+ uint8_t colorRange = 2; // full range
82
+ uint8_t colorPrimaries = 1; // BT.709-6
83
+ uint8_t colorTransfer = 1; // BT.709-6
84
+ uint8_t colorMatrix = 1; // BT.709-6
85
+
77
86
  /// Construct RTP configuration used in packetization process
78
87
  /// @param ssrc SSRC of source
79
88
  /// @param cname CNAME of source
@@ -2,8 +2,8 @@
2
2
  #define RTC_VERSION_H
3
3
 
4
4
  #define RTC_VERSION_MAJOR 0
5
- #define RTC_VERSION_MINOR 23
6
- #define RTC_VERSION_PATCH 1
7
- #define RTC_VERSION "0.23.1"
5
+ #define RTC_VERSION_MINOR 24
6
+ #define RTC_VERSION_PATCH 0
7
+ #define RTC_VERSION "0.24.0"
8
8
 
9
9
  #endif
@@ -72,7 +72,7 @@ struct RTC_CPP_EXPORT Configuration {
72
72
  // Options
73
73
  CertificateType certificateType = CertificateType::Default;
74
74
  TransportPolicy iceTransportPolicy = TransportPolicy::All;
75
- bool enableIceTcp = false; // libnice only
75
+ bool enableIceTcp = false;
76
76
  bool enableIceUdpMux = false; // libjuice only
77
77
  bool disableAutoNegotiation = false;
78
78
  bool disableAutoGathering = false;
@@ -191,7 +191,7 @@ typedef struct {
191
191
  const char *bindAddress; // libjuice only, NULL means any
192
192
  rtcCertificateType certificateType;
193
193
  rtcTransportPolicy iceTransportPolicy;
194
- bool enableIceTcp; // libnice only
194
+ bool enableIceTcp;
195
195
  bool enableIceUdpMux; // libjuice only
196
196
  bool disableAutoNegotiation;
197
197
  bool forceMediaTransport;
@@ -352,6 +352,14 @@ typedef struct {
352
352
  uint8_t playoutDelayId;
353
353
  uint16_t playoutDelayMin;
354
354
  uint16_t playoutDelayMax;
355
+
356
+ uint8_t colorSpaceId;
357
+ uint8_t colorChromaSitingHorz;
358
+ uint8_t colorChromaSitingVert;
359
+ uint8_t colorRange;
360
+ uint8_t colorPrimaries;
361
+ uint8_t colorTransfer;
362
+ uint8_t colorMatrix;
355
363
  } rtcPacketizerInit;
356
364
 
357
365
  // Deprecated, do not use
@@ -18,6 +18,9 @@
18
18
  #include "rtp.hpp"
19
19
 
20
20
  #include <atomic>
21
+ #include <mutex>
22
+
23
+ #define RTP_SEQ_MOD (1<<16)
21
24
 
22
25
  namespace rtc {
23
26
 
@@ -35,16 +38,38 @@ public:
35
38
  [[deprecated("Use Track::requestKeyframe()")]] inline bool requestKeyframe() { return false; };
36
39
  [[deprecated("Use Track::requestBitrate()")]] inline void requestBitrate(unsigned int) {};
37
40
 
41
+ struct SyncTimestamps {
42
+ uint64_t rtpTimestamp;
43
+ uint64_t ntpTimestamp;
44
+ };
45
+
46
+ SyncTimestamps getSyncTimestamps();
47
+
38
48
  protected:
39
49
  void pushREMB(const message_callback &send, unsigned int bitrate);
40
50
  void pushRR(const message_callback &send,unsigned int lastSrDelay);
41
51
  void pushPLI(const message_callback &send);
42
52
 
53
+ void initSeq(uint16_t seq);
54
+ bool updateSeq(uint16_t seq);
55
+
43
56
  SSRC mSsrc = 0;
44
57
  uint32_t mGreatestSeqNo = 0;
45
- uint64_t mSyncRTPTS, mSyncNTPTS;
58
+ uint16_t mMaxSeq = 0; // highest seq. number seen
59
+ uint32_t mCycles = 0; // shifted count of seq. number cycles
60
+ uint32_t mBaseSeq = 0; // base seq number
61
+ uint32_t mBadSeq = 0; // last 'bad' seq number + 1
62
+ uint32_t mProbation = 0; // sequ. packets till source is valid
63
+ uint32_t mReceived = 0; // packets received
64
+ uint32_t mExpectedPrior = 0; // packet expected at last interval
65
+ uint32_t mReceivedPrior = 0; // packet received at last interval
66
+ uint32_t mTransit = 0; // relative trans time for prev pkt
67
+ uint32_t mJitter = 0;
68
+
69
+ SyncTimestamps mSyncTimestamps{0,0};
46
70
 
47
71
  std::atomic<unsigned int> mRequestedBitrate = 0;
72
+ std::mutex mSyncMutex;
48
73
  };
49
74
 
50
75
  } // namespace rtc
@@ -102,7 +102,7 @@ struct RTC_CPP_EXPORT RtcpReportBlock {
102
102
  [[nodiscard]] uint8_t getFractionLost() const;
103
103
  [[nodiscard]] unsigned int getPacketsLostCount() const;
104
104
 
105
- void preparePacket(SSRC in_ssrc, unsigned int packetsLost, unsigned int totalPackets,
105
+ void preparePacket(SSRC in_ssrc, uint8_t fraction, unsigned int totalPacketsLost,
106
106
  uint16_t highestSeqNo, uint16_t seqNoCycles, uint32_t jitter,
107
107
  uint64_t lastSR_NTP, uint64_t lastSR_DELAY);
108
108
  void setSSRC(SSRC in_ssrc);
@@ -74,6 +74,15 @@ public:
74
74
  uint16_t playoutDelayMin = 0;
75
75
  uint16_t playoutDelayMax = 0;
76
76
 
77
+ // https://webrtc.googlesource.com/src/+/refs/heads/main/docs/native-code/rtp-hdrext/color-space/
78
+ uint8_t colorSpaceId = 0; // the negotiated ID of color space header extension
79
+ uint8_t colorChromaSitingHorz = 0; // unspecified
80
+ uint8_t colorChromaSitingVert = 0; // unspecified
81
+ uint8_t colorRange = 2; // full range
82
+ uint8_t colorPrimaries = 1; // BT.709-6
83
+ uint8_t colorTransfer = 1; // BT.709-6
84
+ uint8_t colorMatrix = 1; // BT.709-6
85
+
77
86
  /// Construct RTP configuration used in packetization process
78
87
  /// @param ssrc SSRC of source
79
88
  /// @param cname CNAME of source
@@ -2,8 +2,8 @@
2
2
  #define RTC_VERSION_H
3
3
 
4
4
  #define RTC_VERSION_MAJOR 0
5
- #define RTC_VERSION_MINOR 23
6
- #define RTC_VERSION_PATCH 1
7
- #define RTC_VERSION "0.23.1"
5
+ #define RTC_VERSION_MINOR 24
6
+ #define RTC_VERSION_PATCH 0
7
+ #define RTC_VERSION "0.24.0"
8
8
 
9
9
  #endif