|
@@ -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]];
|