Can't get video working for new android SDK of quickBlox -
Can't get video working for new android SDK of quickBlox -
i've been trying videochat work android 2.0 sdk of quickblox past 2 days. can accept, make, reject videocalls video not send or receive on surfaceview.
i can see own photographic camera video , switch photographic camera fine.
i've gone on demo multiple times , pretty much copied line line.
can give me tips on how working? super thankful.
here qbchatlistener declaration
onqbvideochatlistener qbvideochatlistener = new onqbvideochatlistener() { @override public void oncameradatareceive(byte[] videodata) { qbvideochatcontroller.getinstance().sendvideo(videodata); log.d("send", "video"); } @override public void onmicrophonedatareceive(byte[] audiodata) { if (!muteon) { qbvideochatcontroller.getinstance().sendaudio(audiodata); log.d("send", "audio"); } } @override public void onopponentvideodatareceive(byte[] videodata) { tousersurfaceview.render(videodata); log.d("receive", "video"); } @override public void onopponentaudiodatareceive(byte[] audiodata) { qbvideochatcontroller.getinstance().playaudio(audiodata); log.d("receive", "audio"); } @override public void onprogress(boolean progress) { // progressbar.setvisibility(progress ? view.visible : view.gone); } @override public void onvideochatstatechange(callstate callstate, videochatconfig receivedvideochatconfig) { videochatconfig = receivedvideochatconfig; switch (callstate) { case on_call_start: log.d("on_call_start", "on_call_start"); break; case on_canceled_call: videochatconfig = null; log.d("on_cancel", "on_cancel"); //play sound goback(); break; case on_call_end: log.d("oncallend", "oncallend"); // clear opponent view tousersurfaceview.clear(); goback(); break; case accept: callingtitle.settext("attempting connect \n" + calltitle); mysurfaceview.setvisibility(view.visible); tousersurfaceview.setvisibility(view.visible); qbvideochatcontroller.getinstance().acceptcallbyfriend(videochatconfig, null); log.d("accept", "accept"); break; case on_accept_by_user: callingtitle.settext(calltitle + "\n accepted. attempting connect"); mysurfaceview.setvisibility(view.visible); tousersurfaceview.setvisibility(view.visible); qbvideochatcontroller.getinstance().onacceptfriendcall(videochatconfig, null); log.d("on_accept_by_user", "on_accept_by_user"); break; case on_rejected_by_user: break; case on_did_not_answered: break; case on_connected: hidetitleandindicator(); log.d("onconnected", "onconnected"); switchcamerabutton.setenabled(true); break; case on_start_connecting: log.d("onstartconnection", "onstartconnection"); break; } }
here errors i'm getting in log:
10-03 21:08:36.910 d/qbdatasenders﹕ true false false 10-03 21:08:36.910 d/qbdatasenders﹕ videodata didn`t send 10-03 21:08:36.918 d/cameraview﹕ time=368 9600 1000 10-03 21:08:36.918 d/cameraview﹕ processed sound frame, time=368, size=0.9765625 kb false 10-03 21:08:36.918 d/qbdatasenders﹕ audidata didn`t send 10-03 21:08:36.918 d/send﹕ sound 10-03 21:08:36.957 d/skia﹕ onflycompress 10-03 21:08:37.012 gc_for_alloc freed 1218k, 13% free 13441k/15392k, paused 32ms, total 32ms 10-03 21:08:37.051 d/qbdatasenders﹕ true false false 10-03 21:08:37.051 d/qbdatasenders﹕ videodata didn`t send
also
10-03 21:23:09.528 w/system.err﹕ java.lang.interruptedexception 10-03 21:23:09.528 w/system.err﹕ @ java.lang.vmthread.sleep(native method) 10-03 21:23:09.528 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1031) 10-03 21:23:09.535 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1013) 10-03 21:23:09.535 w/system.err﹕ @ com.quickblox.module.videochat.core.objects.audiorecorder$audioplayingrunnable.run(audiorecorder.java:126) 10-03 21:23:09.535 w/system.err﹕ @ java.lang.thread.run(thread.java:856) 10-03 21:23:09.535 w/system.err﹕ java.lang.interruptedexception 10-03 21:23:09.535 w/system.err﹕ java.lang.interruptedexception 10-03 21:23:09.535 w/system.err﹕ @ java.lang.vmthread.sleep(native method) 10-03 21:23:09.535 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1031) 10-03 21:23:09.535 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1013) 10-03 21:23:09.535 w/system.err﹕ @ com.quickblox.module.videochat.core.objects.audiorecorder$audioplayingrunnable.run(audiorecorder.java:126) 10-03 21:23:09.535 w/system.err﹕ @ java.lang.thread.run(thread.java:856)
and
10-03 22:27:49.824 w/system.err﹕ java.lang.interruptedexception 10-03 22:27:49.831 w/system.err﹕ @ java.lang.vmthread.sleep(native method) 10-03 22:27:49.831 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1031) 10-03 22:27:49.831 w/system.err﹕ @ java.lang.thread.sleep(thread.java:1013) 10-03 22:27:49.831 w/system.err﹕ @ com.quickblox.module.videochat.core.objects.xmppconnectionclient$callingrunnable.run(xmppconnectionclient.java:150)
this solution eclipse android project structure:-
in sdk sample find .so file codec should in project.copy file libs/armeabi folder.
android quickblox videochat video-conferencing
Comments
Post a Comment