Browse Source

chore. remove deprecated api

matrixbirds 5 years ago
parent
commit
975ab52ebd
2 changed files with 0 additions and 41 deletions
  1. 0
    19
      android/src/main/java/com/syan/agora/AgoraModule.java
  2. 0
    22
      ios/RCTAgora/RCTAgora.m

+ 0
- 19
android/src/main/java/com/syan/agora/AgoraModule.java View File

@@ -2370,25 +2370,6 @@ public class AgoraModule extends ReactContextBaseJavaModule {
2370 2370
         }
2371 2371
     }
2372 2372
 
2373
-
2374
-    //配置旁路直播推流
2375
-    @ReactMethod
2376
-    public void configPublisher(ReadableMap options) {
2377
-        PublisherConfiguration config = new PublisherConfiguration.Builder()
2378
-                .owner(options.getBoolean("owner"))
2379
-                .size(options.getInt("width"), options.getInt("height"))
2380
-                .frameRate(options.getInt("framerate"))
2381
-//                .biteRate(options.getInt("bitrate"))
2382
-                .defaultLayout(options.getInt("defaultLayout"))
2383
-                .streamLifeCycle(options.getInt("lifeCycle"))
2384
-                .rawStreamUrl(options.getString("rawStreamUrl"))
2385
-                .publishUrl(options.getString("publishUrl"))
2386
-                .extraInfo(options.getString("extraInfo"))
2387
-                .build();
2388
-
2389
-        AgoraManager.getInstance().mRtcEngine.configPublisher(config);
2390
-    }
2391
-
2392 2373
     //设置本地视频显示模式
2393 2374
     @ReactMethod
2394 2375
     public void setLocalRenderMode(int mode) {

+ 0
- 22
ios/RCTAgora/RCTAgora.m View File

@@ -1576,28 +1576,6 @@ RCT_EXPORT_METHOD(getSdkVersion
1576 1576
   resolve(@[[AgoraRtcEngineKit getSdkVersion]]);
1577 1577
 }
1578 1578
 
1579
-/*
1580
- * @deprecated method
1581
- * configPublisher
1582
- */
1583
-RCT_EXPORT_METHOD(configPublisher:(NSDictionary *)config){
1584
-  AgoraPublisherConfiguration *apc = [AgoraPublisherConfiguration new];
1585
-  
1586
-  apc.width = [config[@"width"] integerValue];  //旁路直播的输出码流的宽度
1587
-  apc.height = [config[@"height"] integerValue]; //旁路直播的输出码流的高度
1588
-  apc.framerate = [config[@"framerate"] integerValue]; //旁路直播的输出码率帧率
1589
-  apc.bitrate = [config[@"bitrate"] integerValue]; //旁路直播输出码流的码率
1590
-  apc.defaultLayout = [config[@"defaultLayout"] integerValue]; //设置流生命周期
1591
-  apc.lifeCycle = [config[@"lifeCycle"] integerValue]; //默认合图布局
1592
-  apc.publishUrl = config[@"publishUrl"]; //合图推流地址
1593
-  apc.rawStreamUrl = config[@"rawStreamUrl"]; //单流地址
1594
-  apc.extraInfo = config[@"extraInfo"]; //其他信息
1595
-  apc.owner = [config[@"owner"] boolValue]; //是否将当前主播设为该 RTMP 流的主人
1596
-  
1597
-  [self.rtcEngine configPublisher:apc];
1598
-  NSLog(@"[DEPRECATED] configPublisher, use addPublishStreamUrl instead ");
1599
-}
1600
-
1601 1579
 // add publish stream url
1602 1580
 RCT_EXPORT_METHOD(addPublishStreamUrl:(NSDictionary *)options) {
1603 1581
   [self.rtcEngine addPublishStreamUrl:options[@"url"] transcodingEnabled:[options[@"enable"] boolValue]];