Commit 2e5693d9 by suolong

提交bug

parent c71fe6f8
...@@ -891,20 +891,28 @@ ...@@ -891,20 +891,28 @@
} }
- (void)initTTSDK { - (void)initTTSDK {
NSString *currentBundleIdentifier = NSBundle.mainBundle.bundleIdentifier ?: @"";
// 直播始终使用固定授权配置,TTVideo 单独走独立 license。 // 直播始终使用固定授权配置,TTVideo 单独走独立 license。
NSInteger liveAppId = 100667; NSInteger liveAppId = 980302338;
NSInteger videoAppId = 642642; NSInteger videoAppId = 642642;
NSString *appname = FUSConfig.sharedInstanced.appConfigs.appName; NSString *appname = @"FusiClub";
NSString *channel = [FUSDeviceHelper fus_getChannelId]; NSString *channel = [FUSDeviceHelper fus_getChannelId];
NSString *bundleID = currentBundleIdentifier; NSString *bundleID = @"com.fusi.meet.live.chat.video.among.friends";
NSString *liveLisenceFilePath = @"TTSDKLisenceFileForTest"; NSString *lisenceFilePath = @"TTSDKLisenceFile";
if (FUSConfig.sharedInstanced.devConfigs.devLevel != FUSDevlopLevelRelease) {
liveAppId = 100667;
appname = FUSConfig.sharedInstanced.appConfigs.appName;
bundleID = @"com.ft.chat.ios";
lisenceFilePath = @"TTSDKLisenceFileForTest";
}
TTSDKConfiguration *liveConfiguration = [TTSDKConfiguration defaultConfigurationWithAppID:@(liveAppId).description]; TTSDKConfiguration *liveConfiguration = [TTSDKConfiguration defaultConfigurationWithAppID:@(liveAppId).description];
liveConfiguration.appName = appname; liveConfiguration.appName = appname;
liveConfiguration.channel = channel; liveConfiguration.channel = channel;
liveConfiguration.bundleID = bundleID; liveConfiguration.bundleID = bundleID;
liveConfiguration.licenseFilePath = [[FUSShowRoomCenterBunble bundle] pathForResource:liveLisenceFilePath ofType:nil]; liveConfiguration.licenseFilePath = [[FUSShowRoomCenterBunble bundle] pathForResource:lisenceFilePath ofType:nil];
[TTSDKManager startWithConfiguration:liveConfiguration]; [TTSDKManager startWithConfiguration:liveConfiguration];
// TTVideo 使用独立的点播 license,避免和直播授权配置串用。 // TTVideo 使用独立的点播 license,避免和直播授权配置串用。
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment