Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
10 Views

ICSLocalStream in Conference iOS - blank stream

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.

Tags (2)
0 Kudos
3 Replies
10 Views

By default, conference sample

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
Highlighted
Beginner
10 Views

Hi Jianjun, Here I'm

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
Highlighted
Beginner
10 Views

Hi Jianjun, even we tried

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