On us.zoom.videosdk:zoomvideosdk-core 2.1.0 I was doing some testing for Preview of camera , Preview microphone and Preview Speaker.
For this I started a session with these values sessionName = “preCallTest”, sessionPassword = data.sessionPassword, jwtToken = data.token, and I was able to get the self camera feed using the bellow function
fun sdkStartSelfieZoomVideo(screen: ZoomVideoSDKVideoView) {
val helper = ZoomVideoSDK.getInstance().videoHelper
helper.startVideo()
helper.rotateMyVideo(deviceRotation)
helper.startVideoCanvasPreview(
// videoView =
screen,
// aspect =
ZoomVideoSDKVideoAspect.ZoomVideoSDKVideoAspect_Original,
)
}
Then I used the bellow function to test the mic
fun startMicroPhoneTest(testAudioDeviceHelper: ZoomVideoSDKTestAudioDeviceHelper) {
try {
val testAudioDeviceHelper = ZoomVideoSDK.getInstance().testAudioDeviceHelper
val ret: Int = testAudioDeviceHelper.startMicTest()
loge("startMicroPhoneTest test ret", " $ret -> ${ZoomErrorCode.parseErrorCode(ret)}")
} catch (ex: Exception) {
ex.printStackTrace()
}
}
and I’m getting 9002 → UNKNOWN_ERROR_CODE .
because of that I’m unable to run the bellow code for play mic test.
fun playMicTest() {
val testAudioDeviceHelper = ZoomVideoSDK.getInstance().testAudioDeviceHelper
val ret: Int = testAudioDeviceHelper.playMicTest()
loge("startMicroPhoneTest test ret", " $ret -> ${ZoomErrorCode.parseErrorCode(ret)}")
}
there I’m getting 1 → ERRORS_WRONG_USAGE error.
Am I missing something here.. ? can you please help me here ?
@ekaansh.zoom @ticorrian.heard @chunsiong.zoom @rehema.zoom @tommy @jon.zoom