Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better customisation of call params #459

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion Example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,27 @@ const Example = (props) => {
await _requestAudioPermission();
await _requestCameraPermission();
}
twilioVideo.current.connect({ accessToken: token, enableNetworkQualityReporting: true});
twilioVideo.current.connect({ roomName: "test_room", accessToken: token,
enableAudio: true,
enableVideo: true,
enableNetworkQualityReporting: false,
dominantSpeakerEnabled: false,
encodingParameters: {
audioBitrate: 16, // Ideal bitrate for speech
videoBitrate: 0, // Use default video bitrate
},
bandwidthProfileOptions: {
mode: "COLLABORATION",
maxSubscriptionBitrate: 2500,
}
})

// Enabled local camera and specify the resolution and framerate (only applicable for Android)
twilioVideo.current.setLocalVideoEnabled(true, {
maxDimensions: "640x480",
maxFPS: 25
})

setStatus("connecting");
};

Expand Down
3 changes: 3 additions & 0 deletions Example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"react-native-twilio-video-webrtc": "file:../",
"react-test-renderer": "16.8.3"
},
"resolutions": {
"graceful-fs": "^4.2.4"
},
"jest": {
"preset": "react-native"
}
Expand Down
Loading