Skip to content

Commit

Permalink
support siprec transcode
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Dec 10, 2024
1 parent 3dad353 commit 6eed7d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ class SrsClient extends Emitter {

async start() {
assert(!this.activated);
const codec = this.rtpEngineOpts.common['codec'];

const opts = {
'call-id': this.rtpEngineOpts.common['call-id'],
Expand All @@ -221,7 +222,9 @@ class SrsClient extends Emitter {
'ICE': 'remove',
'flags': [
...(process.env.JAMBONES_DISABLE_RTP_ADDRESS_LEARNING ? ['asymmetric'] : []),
'allow transcoding']
'allow transcoding'],
// inherit codec flags from application.
...(process.env.JAMBONESE_SIPREC_TRANCODE_ENABLED && codec && {codec})
};

let response = await this.subscribeRequest({ ...opts, label: '1', flags: ['all'], interface: 'public' });
Expand Down

0 comments on commit 6eed7d6

Please sign in to comment.