萤石云 iOSSDK,移植跨平台相关工程
chenqiyang
2023-04-06 eeb0fad802f9558eb74c6964480b38b49e016c45
EZSDK/EZSDK/EZ/UIViewControllers/EZLivePlayViewController.m
@@ -581,6 +581,23 @@
}
///**
// *  收到的画面长宽值
// *
// *  @param player 播放器对象
// *  @param height 高度
// *  @param width  宽度
// */
//- (void)player:(EZPlayer *)player didReceivedDisplayHeight:(NSInteger)height displayWidth:(NSInteger)width{
//    HDLEZLog(@"画面长:%ld,宽:%ld",(long)height,(long)width);
//    CGFloat playerVH=self.playerView.frame.size.height;
//    CGFloat playerVW=playerVH*(width/height);
//    self.playerView.frame=CGRectMake(0, 0, 50, 50);
//    HDLEZLog(@"playerView的frame:%f",self.playerView.frame.size.width);
//
//}
- (void)player:(EZPlayer *)player didPlayFailed:(NSError *)error
{
    NSLog(@"player: %@, didPlayFailed: %@", player, error);