Skip to content

Commit a5c28ec

Browse files
committed
app_webrtc: Added and API to trigger offer
- New API `webrtcAppCreateAndSendOffer`, can be called to initiate the offer - Also, spin the mediaSender thread in handlerAnswer
1 parent 2ebb6da commit a5c28ec

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

esp_port/components/kvs_webrtc/include/app_webrtc.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,17 @@ int webrtcAppSignalingMessageReceived(signaling_msg_t *signalingMessage);
504504
*/
505505
int webrtcAppRegisterSendMessageCallback(app_webrtc_send_msg_cb_t callback);
506506

507+
/**
508+
* @brief Create and send an offer as the initiator
509+
*
510+
* This function creates a WebRTC offer and sends it via the registered signaling callback.
511+
* It's used when the local peer is the initiator in the session.
512+
*
513+
* @param pPeerId Peer ID to send the offer to
514+
* @return STATUS code of the execution
515+
*/
516+
int webrtcAppCreateAndSendOffer(char *pPeerId);
517+
507518
#ifdef __cplusplus
508519
}
509520
#endif

0 commit comments

Comments
 (0)