Created
March 1, 2017 18:56
-
-
Save ktoraskartwilio/e1910ed1ced9f0290db9693a36119cf5 to your computer and use it in GitHub Desktop.
Twilio Programmable Video - Setting Video Constraints on Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LocalMedia localMedia = LocalMedia.create(context); | |
VideoConstraints videoConstraints = new VideoConstraints.Builder() | |
.minVideoDimensions(new VideoDimensions(320, 180)) | |
.maxVideoDimensions(new VideoDimensions(640, 360)) | |
.minFps(5) | |
.maxFps(15) | |
.build(); | |
CameraCapturer cameraCapturer = new CameraCapturer(this, CameraCapturer.CameraSource.FRONT_CAMERA); | |
cameraVideoTrack = localMedia.addVideoTrack(true, cameraCapturer, videoConstraints); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment