mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Renamed createTrack() to addTrack() and added addDataChannel()
This commit is contained in:
@ -151,7 +151,7 @@ int test_capi_track_main() {
|
||||
goto error;
|
||||
|
||||
// Peer 1: Create track
|
||||
peer1->tr = rtcCreateTrack(peer1->pc, mediaDescription);
|
||||
peer1->tr = rtcAddTrack(peer1->pc, mediaDescription);
|
||||
rtcSetOpenCallback(peer1->tr, openCallback);
|
||||
rtcSetClosedCallback(peer1->tr, closedCallback);
|
||||
|
||||
|
@ -102,7 +102,7 @@ void test_track() {
|
||||
std::atomic_store(&t2, t);
|
||||
});
|
||||
|
||||
auto t1 = pc1->createTrack(Description::Video("test"));
|
||||
auto t1 = pc1->addTrack(Description::Video("test"));
|
||||
|
||||
pc1->setLocalDescription();
|
||||
|
||||
|
Reference in New Issue
Block a user