|
@@ -60,6 +60,8 @@
|
|
|
|
|
|
- (void)viewDidDisappear:(BOOL)animated{
|
|
- (void)viewDidDisappear:(BOOL)animated{
|
|
[super viewDidDisappear:animated];
|
|
[super viewDidDisappear:animated];
|
|
|
|
+ [UIApplication sharedApplication].idleTimerDisabled = NO;
|
|
|
|
+ [[UIApplication sharedApplication] setStatusBarHidden:NO];
|
|
|
|
|
|
[_mediaStream disconnect];
|
|
[_mediaStream disconnect];
|
|
[self enablePanRightBack];
|
|
[self enablePanRightBack];
|
|
@@ -523,6 +525,7 @@
|
|
[self setCardSize:size.width cardHeight:size.height cardDensity:cardDensity];
|
|
[self setCardSize:size.width cardHeight:size.height cardDensity:cardDensity];
|
|
|
|
|
|
tempRate = (size.width *1.0)/(size.height *1.0);
|
|
tempRate = (size.width *1.0)/(size.height *1.0);
|
|
|
|
+ //_mediaStream.frame =CGRectMake(0, 0, SCREEN_W, SCREEN_H);
|
|
}
|
|
}
|
|
else{
|
|
else{
|
|
// NSString *commondStr = [RCCommandHelp setPhoneSizecommandWithWidth:1080 high:1920 dpi:480];
|
|
// NSString *commondStr = [RCCommandHelp setPhoneSizecommandWithWidth:1080 high:1920 dpi:480];
|
|
@@ -533,11 +536,13 @@
|
|
tempRate = 1080.0/1920.0;
|
|
tempRate = 1080.0/1920.0;
|
|
}
|
|
}
|
|
|
|
|
|
- if (tempRate > 1) {/*横屏*/
|
|
|
|
- [self setLanMas_makeWithImageRate:tempRate];
|
|
|
|
- }else{/*竖屏*/
|
|
|
|
- [self setPoMas_makeWithImageRate:tempRate];
|
|
|
|
- }
|
|
|
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
|
+ if (tempRate > 1) {/*横屏*/
|
|
|
|
+ [self setLanMas_makeWithImageRate:tempRate];
|
|
|
|
+ }else{/*竖屏*/
|
|
|
|
+ [self setPoMas_makeWithImageRate:tempRate];
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
|
|
|
|
#pragma mark -- /*推流中修改卡的分辨率*/
|
|
#pragma mark -- /*推流中修改卡的分辨率*/
|
|
@@ -632,7 +637,7 @@
|
|
#pragma mark WebRTC 回调 MediaStreamClientEventsDelegate
|
|
#pragma mark WebRTC 回调 MediaStreamClientEventsDelegate
|
|
#pragma mark - 宽高变化
|
|
#pragma mark - 宽高变化
|
|
-(void)onFrameResolutionChangedFromPeerName:(NSString*)peerName videoWidth:(int)videoWidth videoHeight:(int)videoHeight rotation:(int)rotation {
|
|
-(void)onFrameResolutionChangedFromPeerName:(NSString*)peerName videoWidth:(int)videoWidth videoHeight:(int)videoHeight rotation:(int)rotation {
|
|
- HLog(@"peerName:%@---%d---%d--%d",peerName,videoWidth,videoHeight,rotation)
|
|
|
|
|
|
+ HLog(@"onFrameResolutionChangedFromPeerName:%@---%d---%d--%d",peerName,videoWidth,videoHeight,rotation)
|
|
|
|
|
|
mainBlock(^{
|
|
mainBlock(^{
|
|
[self handlUIAfterGetCloudPhoneVideoWidth:videoWidth videoHeight:videoHeight rotation:rotation];
|
|
[self handlUIAfterGetCloudPhoneVideoWidth:videoWidth videoHeight:videoHeight rotation:rotation];
|