Closed jlubeck closed 6 years ago
Hi @jlubeck, move this code:
// add video capture to session's local media stream
// from version 2.3 you no longer need to wait for 'initializedLocalMediaStream:' delegate to do it
self.session.localMediaStream.videoTrack.videoCapture = self.videoCapture;
from view will appear into:
- (IBAction)call:(id)sender{
if ([Server checkForInternetConnection]){
if(callButton.tag == 101){
btnCallingProcess.hidden = NO;
[btnCallingProcess setBackgroundImage:[UIImage imageNamed:@"V_calling"] forState:UIControlStateNormal];
callButton.tag = 102;
// Setup video chat
NSArray *opponentsIDs = @[opponentID];
QBRTCSession *newSession = [[QBRTCClient instance] createNewSessionWithOpponents:opponentsIDs
withConferenceType:QBRTCConferenceTypeVideo];
///->>>>>>>>>>>
newSession.localMediaStream.videoTrack.videoCapture = self.videoCapture;
[newSession startCall:nil];
///->>>>>>>>>>> and retain new session
self.session = newSession;
....
Thanks
@jlubeck because you create the session in the call:
method, in view will appear
session == nil.
Plese chek it.
Please check our video sample. We set video capture for local media stream after session creates.
Thanks.
Hi @jlubeck, Any updates?
Working on it!
It worked!!! But instead of moving from viewWillAppear I had to copy it it. If I just moved it, then it work the other way around and only work on the receiver and not the caller. Thanks!
New Issue Checklist
I'm using the latest SDK. I can't make the RemoteVideoView work on the receiving end. Whenever I make a video call, the caller gets the video from the receiver. But not the other way around. If I switch roles, same issue again.
Here are my logs on the caller: https://pastebin.com/zx7Qedse Here are my logs on the receiver: https://pastebin.com/zhcCJ6Sn
Here is the code on the viewcontroller: