Skip to content

Commit 8e2976c

Browse files
committed
rewrite bandwidth set into WebRTC sample
1 parent 2c7b71e commit 8e2976c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/webrtc/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383

384384
isAudio = $btn.data('call') === 'audio';
385385

386-
app.currentSession = QB.webrtc.createNewSession(Object.keys(app.callees), isAudio ? QB.webrtc.CallType.AUDIO : QB.webrtc.CallType.VIDEO, null, bandwidth);
386+
app.currentSession = QB.webrtc.createNewSession(Object.keys(app.callees), isAudio ? QB.webrtc.CallType.AUDIO : QB.webrtc.CallType.VIDEO, null, {'bandwidth': bandwidth});
387387

388388
if(isAudio) {
389389
mediaParams = {

0 commit comments

Comments
 (0)