Skip to content

Commit

Permalink
Merge pull request #100 from bjia56/ice-lite
Browse files Browse the repository at this point in the history
sdp: configurable ice-lite
  • Loading branch information
sepfy authored Aug 25, 2024
2 parents a7f6052 + db6a362 commit 78b8b80
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ void sdp_create(Sdp *sdp, int b_video, int b_audio, int b_datachannel) {
sdp_append(sdp, "s=-");
sdp_append(sdp, "t=0 0");
sdp_append(sdp, "a=msid-semantic: iot");

#if ICE_LITE
sdp_append(sdp, "a=ice-lite");
#endif
memset(bundle, 0, sizeof(bundle));

strcat(bundle, "a=group:BUNDLE");
Expand Down
8 changes: 6 additions & 2 deletions src/sdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@
#define SDP_CONTENT_LENGTH 10240
#define SDP_ATTR_LENGTH 128

#ifndef ICE_LITE
#define ICE_LITE 0
#endif

typedef struct Sdp {

char content[SDP_CONTENT_LENGTH];

} Sdp;

void sdp_append_h264(Sdp *sdp);

void sdp_append_pcma(Sdp *sdp);

void sdp_append_pcmu(Sdp *sdp);

void sdp_append_opus(Sdp *sdp);
Expand Down

0 comments on commit 78b8b80

Please sign in to comment.