Wowza Community

How to enable zoom option in camera

Missing title. Missing body.

i am using gocoder sdk in my app for live streaming.

but there is requirement of zooming camera, but not found option in wowza.

need help?

I have tried to create it as like below:- (It worked for me, hope the same for you as well)

protected void ZoomOut() {
    Log.e("Camera", "-- ZOOM OUT --");

    if (goCoderCameraView == null) return;

    if (currentZoomLevel > 0) {
        currentZoomLevel--;

        android.hardware.Camera.Parameters params = goCoderCameraView.getCamera().getPlatformDevice().getParameters();
        params.setZoom(currentZoomLevel);
        goCoderCameraView.getCamera().getPlatformDevice().setParameters(params);
    }
}	

// Add this line after you have initialised Wowza Services.

int currentZoomLevel = goCoderCameraView.getCamera().getPlatformDevice().getParameters().getZoom();

thanks alot , worked for me

Yes Harpreet Singh this is working thanks for sharing !!!


Web Design San Jose

Thank for sharing this thread…


Vashikaran Specialist in Madhya Pradesh