Update SrsPublisher.java

camera2
thegobot 6 years ago committed by GitHub
parent 0ed6343411
commit 6e00e91d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -246,6 +246,10 @@ public class SrsPublisher {
return mCameraView.getCameraId(); return mCameraView.getCameraId();
} }
public Camera getCamera() {
return mCameraView.getCamera();
}
public void setPreviewResolution(int width, int height) { public void setPreviewResolution(int width, int height) {
int resolution[] = mCameraView.setPreviewResolution(width, height); int resolution[] = mCameraView.setPreviewResolution(width, height);
mEncoder.setPreviewResolution(resolution[0], resolution[1]); mEncoder.setPreviewResolution(resolution[0], resolution[1]);

Loading…
Cancel
Save