Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/peer_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,3 +582,11 @@ int peer_connection_add_ice_candidate(PeerConnection* pc, char* candidate) {
agent->remote_candidates_count++;
return 0;
}

void peer_connection_update_remote_assrc(PeerConnection* pc, uint32_t assrc) {
pc->remote_assrc = assrc;
}

void peer_connection_update_remote_vssrc(PeerConnection* pc, uint32_t vssrc) {
pc->remote_vssrc = vssrc;
}
14 changes: 14 additions & 0 deletions src/peer_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ char* peer_connection_lookup_sid_label(PeerConnection* pc, uint16_t sid);
*/
int peer_connection_add_ice_candidate(PeerConnection* pc, char* ice_candidate);

/**
* @brief update audio ssrc
* @param[in] peer connection
* @param[in] assrc audio ssrc
*/
void peer_connection_update_remote_assrc(PeerConnection* pc, uint32_t assrc);

/**
* @brief update video ssrc
* @param[in] peer connection
* @param[in] vssrc video ssrc
*/
void peer_connection_update_remote_vssrc(PeerConnection* pc, uint32_t vssrc);

#ifdef __cplusplus
}
#endif
Expand Down