Renamed createTrack() to addTrack() and added addDataChannel()

This commit is contained in:
Paul-Louis Ageneau
2020-09-18 23:01:50 +02:00
parent 6a876dda49
commit a1721268a2
7 changed files with 48 additions and 29 deletions

View File

@ -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);

View File

@ -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();