Skip to content

Commit

Permalink
Added test for media description parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
paullouisageneau committed Dec 29, 2023
1 parent 0849994 commit d685cf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ void test_track() {
media.setBitrate(3000);
media.addSSRC(1234, "video-send");

const auto mediaSdp1 = string(media);
const auto mediaSdp2 = string(Description::Media(mediaSdp1));
if (mediaSdp2 != mediaSdp1)
throw runtime_error("Media description parsing test failed");

auto t1 = pc1.addTrack(media);

pc1.setLocalDescription();
Expand Down

0 comments on commit d685cf1

Please sign in to comment.