Skip to content

Commit b779f34

Browse files
author
jeffgaogao
committed
docs(TcgSdk): release 3.15.1
1 parent 996d2bd commit b779f34

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

Demo/TCRDemo/TCGDemo/TCGDemoGamePlayVC.m

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -634,22 +634,28 @@ - (void)onEvent:(TcrEvent)event eventData:(id)eventData {
634634
case STATE_CLOSED:
635635
[self showToast:@"会话关闭"];
636636
break;
637-
case VIDEO_STREAM_CONFIG_CHANGED:
638-
NSLog(@"ApiTest 分辨率变化:%@", (NSString *)eventData);
639-
info = (NSDictionary *)eventData;
640-
CGFloat width = [info[@"width"] doubleValue];
641-
CGFloat height = [info[@"height"] doubleValue];
642-
[self resetVideoViewWithSize:CGSizeMake(width, height)];
643-
break;
644637
case IME_TYPE: {
645638
info = (NSDictionary *)eventData;
646639
NSString* imeType = (NSString *)info[@"ime_type"];
647640
NSLog(@"gaogao 输入法类型:%@", imeType);
648641
break;
649642
}
650-
case SCREEN_CONFIG_CHANGE:
643+
case SCREEN_CONFIG_CHANGE: {
651644
NSLog(@"ApiTest 横竖屏变化:%@", (NSString *)eventData);
645+
info = (NSDictionary *)eventData;
646+
NSString *orientationStr = (NSString *)info[@"orientation"];
647+
CGFloat width = [info[@"width"] doubleValue];
648+
CGFloat height = [info[@"height"] doubleValue];
649+
if ([orientationStr isEqualToString:@"landscape"]) {
650+
CGFloat temp = width;
651+
width = height;
652+
height = temp;
653+
}
654+
dispatch_async(dispatch_get_main_queue(), ^{
655+
[self resetVideoViewWithSize:CGSizeMake(width, height)];
656+
});
652657
break;
658+
}
653659
case MULTI_USER_SEAT_INFO:
654660
NSLog(@"ApiTest 房间信息变化:%@", (NSString *)eventData);
655661
break;

Doc/Release_Notes_EN-US.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[中文文档](历史版本.md)
22

3+
### Version 3.15.1 (2025-12.11)
4+
Bug Fixes
5+
- Fix and optimize some known issues
6+
37
### Version 3.15.0 (2025-12.11)
48
Features
59
- Added inputText:mode:indexAfterOverride interface to TcrSession

Doc/历史版本.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[English document](Release_Notes_EN-US.md)
22

3+
### Version 3.15.1 (2025-12.11)
4+
Bug Fixes
5+
- 修复和优化一些已知问题
6+
37
### Version 3.15.0 (2025-12.11)
48
Features
59
- TcrSession新增inputText:mode:indexAfterOverride接口

SDK/TCRSDK.framework/TCRSDK

0 Bytes
Binary file not shown.

TCRSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'TCRSDK'
3-
spec.version = '3.15.0'
3+
spec.version = '3.15.1'
44
spec.license = { :type => 'MIT' }
55
spec.homepage = 'https://github.com/tencentyun/cloudgame-ios-sdk'
66
spec.summary = 'Tencent Cloud Gaming Software Development Kit for iOS.'

0 commit comments

Comments
 (0)