feat(screenshare): add screen bitrate config in bbb-html5

This commit is contained in:
prlanzarin 2021-04-24 19:12:59 +00:00
parent 3455b20501
commit 84cbda75a3
4 changed files with 6 additions and 1 deletions

View File

@ -258,6 +258,7 @@ export default class KurentoScreenshareBridge {
userName: Auth.fullname,
stream,
hasAudio: this.hasAudio,
bitrate: BridgeService.BASE_BITRATE,
};
this.broker = new ScreenshareBroker(

View File

@ -7,6 +7,7 @@ import { SCREENSHARING_ERRORS } from './errors';
const {
constraints: GDM_CONSTRAINTS,
mediaTimeouts: MEDIA_TIMEOUTS,
bitrate: BASE_BITRATE,
} = Meteor.settings.public.kurento.screenshare;
const {
baseTimeout: BASE_MEDIA_TIMEOUT,
@ -150,4 +151,5 @@ export default {
screenshareLoadAndPlayMediaStream,
BASE_MEDIA_TIMEOUT,
MAX_CONN_ATTEMPTS,
BASE_BITRATE,
};

View File

@ -22,7 +22,7 @@ class ScreenshareBroker extends BaseBroker {
this.webRtcPeer = null;
this.hasAudio = false;
// Optional parameters are: userName, caleeName, iceServers, hasAudio
// Optional parameters are: userName, caleeName, iceServers, hasAudio, bitrate
Object.assign(this, options);
}
@ -116,6 +116,7 @@ class ScreenshareBroker extends BaseBroker {
callerName: this.userId,
sdpOffer,
hasAudio: !!this.hasAudio,
bitrate: this.bitrate,
};
this.sendMessage(message);

View File

@ -168,6 +168,7 @@ public:
# subscribe reattempt increases the reconnection timer up to this
maxTimeout: 60000
screenshare:
bitrate: 1500
mediaTimeouts:
maxConnectionAttempts: 2
# Base screen media timeout (send|recv)