Skip to content

Commit e0d8861

Browse files
committed
Merge branch 'feature/add_esp_peer_v1.3.0' into 'main'
esp_peer: update to v1.3.0 See merge request adf/esp-webrtc-solution!69
2 parents 11941b1 + c2e0636 commit e0d8861

File tree

9 files changed

+28
-2
lines changed

9 files changed

+28
-2
lines changed

components/esp_peer/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## v1.3.0
4+
5+
### Bug Fixes
6+
7+
- Fixed crash caused by receiving SCTP messages before data channel creation
8+
- Fixed incorrect H264 profile usage when controlled by peer
9+
- Fixed race condition in SCTP reference counting
10+
- Fixed misleading fingerprint verification error logs
11+
- Fixed crash due to negative KMS server priority value
12+
- Fixed agent deinitialization while still in use
13+
14+
### Features
15+
16+
- Added RTP transformer support (custom packet processing)
17+
- Added H264 RTP decoder support
18+
- Added IPv6 compatibility
19+
- Added media direction negotiation based on SDP
20+
- Added agent argument validation
21+
- Added receive lock to prevent crashes during concurrent packet processing
22+
- Added weak UDP transport implementation (fallback for unreliable networks)
23+
- Added DTLS close_notify handling for graceful disconnection
24+
- Added configurable limit for maximum ICE candidates
25+
326
## v1.2.7
427

528
### Bug Fixes

components/esp_peer/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
description: Espressif PeerConnection Library
2-
version: 1.2.7
2+
version: 1.3.0
33
url: "https://github.com/espressif/esp-webrtc-solution/tree/main/components/esp_peer"
44
documentation: "https://github.com/espressif/esp-webrtc-solution/tree/main/components/esp_peer/README.md"
55
issues: "https://github.com/espressif/esp-webrtc-solution/issues"

components/esp_peer/include/esp_peer_default.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ typedef struct {
6464
esp_peer_default_rtp_cfg_t rtp_cfg; /*!< Configuration of RTP buffer */
6565
bool keep_role; /*!< Do not reset role to controlling when disconnected */
6666
bool ipv6_support; /*!< Support IPv6 */
67+
uint8_t max_candidates; /*!< Maximum ICE candidates to gather
68+
Large setting will consume more heap memory
69+
Defaults is 10 if set to 0 */
6770
} esp_peer_default_cfg_t;
6871

6972
/**
4.55 KB
Binary file not shown.
4.55 KB
Binary file not shown.
6.48 KB
Binary file not shown.
4.55 KB
Binary file not shown.
4.55 KB
Binary file not shown.

components/esp_peer/src/dtls_srtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ int dtls_srtp_read(dtls_srtp_t *dtls_srtp, unsigned char *buf, size_t len)
520520
continue;
521521
} else if (ret == 0 || ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY) { // Detected DTLS connection close ret
522522
ESP_LOGE(TAG, "Detected DTLS connection close ret %d", ret);
523-
ret = -1;
523+
ret = MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY;
524524
break;
525525
} else if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_TIMEOUT) {
526526
ret = 0;

0 commit comments

Comments
 (0)