- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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]); } ]; }
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page