Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

ICSLocalStream in Conference iOS - blank stream

ANIL_K_3
Beginner
836 Views

Hi,

We are integrated iOS sdk 4.1 conference client to our app. In this we are getting an issue, from iphone when published, getting the console log prints "publish success! " and also "Subscribe stream success". But getting video was blank.

If participants already accoupied in room and then join from iphone then everything was fine.

0 Kudos
3 Replies
Jianjun_Z_Intel
Employee
836 Views

By default, conference sample only shows the mixed stream. You were getting blank screen because of two issues from my point of view. The first one is sample app doesn't show local stream. The second one is the stream published by you was not mixed into mixed stream. To fix the 2nd issue, please take a look at the mixToCommonView method in ConferenceStreamViewController.m. It sends a REST request to conference server but the URL might be hard coded in last release. Please replace it with your server's URL. Thanks.

0 Kudos
ANIL_K_3
Beginner
836 Views

Hi Jianjun, Here I'm successfully sending REST request to my conference server(https://xxxxxxxx-vc.net:3004/rooms/5c10a7a3d7a49659e1ac470b/streams/287316683051335840), by using mixToCommonView method. and also I'm getting REST API success response from my server.

Here I'm sharing the code FYI.

-(void)mixToCommonView:(ICSConferencePublication* )publication{
  
  NSDictionary *params = [[NSDictionary alloc]initWithObjectsAndKeys:
                          @"add", @"op",
                          @"/info/inViews",@"path",
                          @"common", @"value", nil];
  AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
  manager.requestSerializer = [AFJSONRequestSerializer serializer];
  [manager.requestSerializer setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
  
  manager.responseSerializer = [AFHTTPResponseSerializer serializer];
  manager.securityPolicy.allowInvalidCertificates=NO;
  manager.securityPolicy.validatesDomainName=YES;
  
  NSString *patchUrlStr = [NSString stringWithFormat:@"https://xxxxxxxx-vc.net:3004/rooms/%@/streams/%@", appDelegate.conferenceId, publication.publicationId];
  NSLog(@"patchUrlStr:--->>> %@", patchUrlStr);
  
  [manager PATCH:patchUrlStr parameters:params success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
    NSLog(@"patch responseObject:--->>> %@", responseObject);
    
  }
         failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
           NSLog(@"patch Error:--->>> %@", [error localizedDescription]);
         }
   ];
}

 

0 Kudos
ANIL_K_3
Beginner
836 Views

Hi Jianjun, even we tried with http also (http://xxxxxxxx-vc.net:3001/rooms/5c10a7a3d7a49659e1ac470b/streams/287316683051335840) but no use.

We are still struggling with this issue, what we are missing,?

0 Kudos
Reply