Closed
Description
We are using following android sdk libraries:-
implementation "software.aws.chimesdk:amazon-chime-sdk-media:0.22.0" implementation "software.aws.chimesdk:amazon-chime-sdk:0.22.0"
and implemented code based on this link to enhance video capture quality to VideoCaptureFormat(1920 ,1080, 30fps)
Here is the glimpse of code:-
eglCoreFactory = DefaultEglCoreFactory()
val surfaceTextureCaptureSourceFactory = DefaultSurfaceTextureCaptureSourceFactory(logger, eglCoreFactory!!)
cameraCaptureSource = DefaultCameraCaptureSource(requireContext(), logger, surfaceTextureCaptureSourceFactory)
// Get the current device and format
cameraCaptureSource?.let {
val currentDevice = it.device
val currentFormat = it.format
// Pick a new device explicitly (requires application context)
val desiredDeviceType = MediaDeviceType.VIDEO_BACK_CAMERA
val cameraManager: CameraManager = context?.getSystemService(Context.CAMERA_SERVICE) as CameraManager
val newDevice = MediaDevice.listVideoDevices(cameraManager).firstOrNull { it.type == desiredDeviceType } ?: return
it.device = newDevice
// Pick a new format explicitly
val newFormat = MediaDevice.listSupportedVideoCaptureFormats(cameraManager, newDevice)
.firstOrNull { it.height <= 800 } ?: return
it.format = newFormat
}
cameraCaptureSource?.format = VideoCaptureFormat(1920,1080,30)
cameraCaptureSource?.start()
cameraCaptureSource?.let { startLocalVideo(it,LocalVideoConfiguration(6000)) }
still the video quality is blurred and seems 720 p as if it is internally using DefaultCameraCaptureSource.
Would appreciate your prompt help on this.
Metadata
Metadata
Assignees
Labels
No labels