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,
|
userName: Auth.fullname,
|
||||||
stream,
|
stream,
|
||||||
hasAudio: this.hasAudio,
|
hasAudio: this.hasAudio,
|
||||||
|
bitrate: BridgeService.BASE_BITRATE,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.broker = new ScreenshareBroker(
|
this.broker = new ScreenshareBroker(
|
||||||
|
@ -7,6 +7,7 @@ import { SCREENSHARING_ERRORS } from './errors';
|
|||||||
const {
|
const {
|
||||||
constraints: GDM_CONSTRAINTS,
|
constraints: GDM_CONSTRAINTS,
|
||||||
mediaTimeouts: MEDIA_TIMEOUTS,
|
mediaTimeouts: MEDIA_TIMEOUTS,
|
||||||
|
bitrate: BASE_BITRATE,
|
||||||
} = Meteor.settings.public.kurento.screenshare;
|
} = Meteor.settings.public.kurento.screenshare;
|
||||||
const {
|
const {
|
||||||
baseTimeout: BASE_MEDIA_TIMEOUT,
|
baseTimeout: BASE_MEDIA_TIMEOUT,
|
||||||
@ -150,4 +151,5 @@ export default {
|
|||||||
screenshareLoadAndPlayMediaStream,
|
screenshareLoadAndPlayMediaStream,
|
||||||
BASE_MEDIA_TIMEOUT,
|
BASE_MEDIA_TIMEOUT,
|
||||||
MAX_CONN_ATTEMPTS,
|
MAX_CONN_ATTEMPTS,
|
||||||
|
BASE_BITRATE,
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,7 @@ class ScreenshareBroker extends BaseBroker {
|
|||||||
this.webRtcPeer = null;
|
this.webRtcPeer = null;
|
||||||
this.hasAudio = false;
|
this.hasAudio = false;
|
||||||
|
|
||||||
// Optional parameters are: userName, caleeName, iceServers, hasAudio
|
// Optional parameters are: userName, caleeName, iceServers, hasAudio, bitrate
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,6 +116,7 @@ class ScreenshareBroker extends BaseBroker {
|
|||||||
callerName: this.userId,
|
callerName: this.userId,
|
||||||
sdpOffer,
|
sdpOffer,
|
||||||
hasAudio: !!this.hasAudio,
|
hasAudio: !!this.hasAudio,
|
||||||
|
bitrate: this.bitrate,
|
||||||
};
|
};
|
||||||
|
|
||||||
this.sendMessage(message);
|
this.sendMessage(message);
|
||||||
|
@ -168,6 +168,7 @@ public:
|
|||||||
# subscribe reattempt increases the reconnection timer up to this
|
# subscribe reattempt increases the reconnection timer up to this
|
||||||
maxTimeout: 60000
|
maxTimeout: 60000
|
||||||
screenshare:
|
screenshare:
|
||||||
|
bitrate: 1500
|
||||||
mediaTimeouts:
|
mediaTimeouts:
|
||||||
maxConnectionAttempts: 2
|
maxConnectionAttempts: 2
|
||||||
# Base screen media timeout (send|recv)
|
# Base screen media timeout (send|recv)
|
||||||
|
Loading…
Reference in New Issue
Block a user