I am using QuickBlox Video Chat Sample and it is working fine. Now I want to use back camera and Documentation says that camera can be changed during video call by using cameraView.switchCamera() . But I dont know where should I put this code . Also Documentation says that Video Chat can be recorded , so I want to know that how can I record Video chat and can access later.
Asked
Active
Viewed 1,079 times
1 Answers
3
1 - To switch camera you could use cameraView.switchCamera() For example, You can locate switch button over cameraView in xml file ,apply clickListener for it:
switchCameraBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
cameraView.switchCamera();
}
});
2 - You can handle all data that coming from camera and your opponent in this callBack:
private OnQBVideoChatListener qbVideoChatListener = new OnQBVideoChatListener() {
@Override
public void onCameraDataReceive(byte[] videoData) {
}
@Override
public void onMicrophoneDataReceive(byte[] audioData) {
}
@Override
public void onOpponentVideoDataReceive(byte[] videoData) {
}
@Override
public void onOpponentAudioDataReceive(byte[] audioData) {
}
};

Andrew Dmytrenko
- 380
- 3
- 11
-
Added a button to change Camera during call but it doesn't change camera , though app got hanged. For creating video from byte array, can you provide me any sample code. – Rahul Chauhan Dec 07 '13 at 08:18
-
@Andrew Dmytrenko I could not find this class in Quickblox you have used. how you have done can you please explain a bit more! – Shishram Jan 12 '17 at 05:54
-
@Shishram i left QuickBlox almost 2 years ago. Probably quickblox team completely changed android sdk api so please check official documentation on their website. – Andrew Dmytrenko Jan 12 '17 at 12:38
-
Thanks @AndrewDmytrenko but one quick thing was this video recording there earlier when you were working there, because right now I couldn't find video recording in current SDK. Thanks for your time! – Shishram Jan 12 '17 at 12:43
-
@Shishram Youre welcome. No audio or video recording out of the box, in the past you just had access to raw audio/video data that your phone record or receive from opponent – Andrew Dmytrenko Jan 12 '17 at 12:59
-
Thanks again man @AndrewDmytrenko I am also in need of the byte[] but its not there in Github code of latest sdk still i have created an issue asking the same question. – Shishram Jan 12 '17 at 13:08