Skip to content

Commit 2ebb6da

Browse files
committed
webrtc_split: move SignalingMessage logic to the app_webrtc.c
- Application should not need to take care of fitting the message received from webrtc_bridge into SDK's structure format - The message will simply be deserialized and passed to SDK using `webrtcAppSignalingMessageReceived` API - Messages from SDK are received via callback and we can send to webrtc_bridge from application
1 parent 87e5cdf commit 2ebb6da

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

esp_port/components/kvs_webrtc/include/app_webrtc.h

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -484,48 +484,6 @@ STATUS webrtcAppRun(VOID);
484484
*/
485485
STATUS webrtcAppTerminate(VOID);
486486

487-
/**
488-
* @brief Get the sample configuration object
489-
*
490-
* This function returns a pointer to the current sample configuration.
491-
*
492-
* @param[out] ppSampleConfiguration Pointer to store the sample configuration
493-
* @return STATUS code of the execution
494-
*/
495-
STATUS webrtcAppGetSampleConfiguration(PSampleConfiguration *ppSampleConfiguration);
496-
497-
/**
498-
* @brief Send a video frame to all connected peers
499-
*
500-
* @param frame_data Pointer to frame data
501-
* @param frame_size Size of the frame in bytes
502-
* @param timestamp Presentation timestamp
503-
* @param is_key_frame Whether this is a key frame
504-
* @return STATUS code of the execution
505-
*/
506-
STATUS webrtcAppSendVideoFrame(PBYTE frame_data, UINT32 frame_size, UINT64 timestamp, BOOL is_key_frame);
507-
508-
/**
509-
* @brief Send an audio frame to all connected peers
510-
*
511-
* @param frame_data Pointer to frame data
512-
* @param frame_size Size of the frame in bytes
513-
* @param timestamp Presentation timestamp
514-
* @return STATUS code of the execution
515-
*/
516-
STATUS webrtcAppSendAudioFrame(PBYTE frame_data, UINT32 frame_size, UINT64 timestamp);
517-
518-
/**
519-
* @brief Create and send an offer as the initiator
520-
*
521-
* This function creates a WebRTC offer and sends it via the registered signaling callback.
522-
* It's used when the local peer is the initiator in the session.
523-
*
524-
* @param pPeerId Peer ID to send the offer to
525-
* @return STATUS code of the execution
526-
*/
527-
int webrtcAppCreateAndSendOffer(char *pPeerId);
528-
529487
/**
530488
* @brief Process a received signaling message from a custom signaling implementation
531489
*

0 commit comments

Comments
 (0)