feat(screenshare): add screen bitrate config in bbb-html5
This commit is contained in:
parent
3455b20501
commit
84cbda75a3
@ -258,6 +258,7 @@ export default class KurentoScreenshareBridge {
|
||||
userName: Auth.fullname,
|
||||
stream,
|
||||
hasAudio: this.hasAudio,
|
||||
bitrate: BridgeService.BASE_BITRATE,
|
||||
};
|
||||
|
||||
this.broker = new ScreenshareBroker(
|
||||
|
@ -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,
|
||||
};
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user