Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 34861f0

Browse files
committed
Enable simulcast in conference sample.
1 parent f1146bc commit 34861f0

File tree

1 file changed

+5
-1
lines changed
  • src/samples/conference/public/scripts

1 file changed

+5
-1
lines changed

src/samples/conference/public/scripts/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,11 @@ const runSocketIOSample = function() {
147147
mediaStream, new Owt.Base.StreamSourceInfo(
148148
'mic', 'camera'));
149149
$('.local video').get(0).srcObject = stream;
150-
conference.publish(localStream).then(publication => {
150+
conference.publish(localStream, {video:[
151+
{rid: 'q', active: true, scaleResolutionDownBy: 4.0},
152+
{rid: 'h', active: true, scaleResolutionDownBy: 2.0},
153+
{rid: 'f', active: true}
154+
]}).then(publication => {
151155
publicationGlobal = publication;
152156
mixStream(myRoom, publication.id, 'common')
153157
publication.addEventListener('error', (err) => {

0 commit comments

Comments
 (0)