PlayerView.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //
  2. // PlayerView.h
  3. // VclustersGemini
  4. //
  5. // Created by APPLE on 2019/6/13.
  6. // Copyright © 2019 APPLE. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <GLKit/GLKit.h>
  10. #import "ShowImageView.h"
  11. #import "Masonry.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol PlayerViewDelegate <NSObject>
  14. @optional
  15. - (void)useInfoBtnBePressed:(id)sender;
  16. - (void)playerShowImageViewtouchesStr:(NSString *)commondStr;
  17. @end
  18. @interface PlayerView : UIView
  19. @property(nonatomic,strong)ShowImageView *showImageView;
  20. /**
  21. * @brief openGL渲染视图
  22. *
  23. */
  24. @property(nonatomic,strong)GLKView *glkshowImageView;
  25. /**
  26. * @brief 悬浮控制按钮
  27. *
  28. *专业模式下隐藏,普通模式下显示。
  29. *注意横竖屏切换时需要注意坐标的转换。
  30. *自动置于屏幕边缘时要考虑灵动岛以及底部滑块的干扰问题,建议置于4个角。
  31. *
  32. */
  33. @property(nonatomic,strong)UIButton *controlBtn;
  34. @property (nonatomic, weak) id<PlayerViewDelegate> delegate;
  35. /**
  36. * @brief 设备唯一标识符
  37. *
  38. */
  39. @property(nonatomic,copy)NSString *sn;
  40. /**
  41. * @brief 标记是否为横屏
  42. *
  43. */
  44. @property(nonatomic,assign)BOOL isLan;
  45. /**
  46. * @brief 云手机类型 VIP星动云手机 SVIP星曜云手机 STAR 唔即云手机
  47. */
  48. @property(copy,nonatomic)NSString *buyVipType;
  49. /**
  50. * @brief 渲染图片
  51. *
  52. * @param ciImage 待渲染的图片数据源
  53. *
  54. */
  55. - (void)glkShowImage:(CIImage *)ciImage;
  56. /**
  57. * @brief 布局渲染视图横屏模式视图
  58. *
  59. * @param w_h_rate 原始图片宽高比
  60. *
  61. * @param isOpenVirtual 是否有打开虚拟按键视图
  62. *
  63. * @param isUsageMode 是否为专业模式
  64. *
  65. */
  66. - (void)setLanMas_makeWithImageRate:(CGFloat)w_h_rate isOpenVirtual:(BOOL)isOpenVirtual isUsageMode:(BOOL)isUsageMode;
  67. /**
  68. * @brief 布局渲染视图竖屏模式视图
  69. *
  70. * @param w_h_rate 原始图片宽高比
  71. *
  72. * @param isOpenVirtual 是否有打开虚拟按键视图
  73. *
  74. * @param isUsageMode 是否为专业模式
  75. *
  76. */
  77. - (void)setPoMas_makeWithImageRate:(CGFloat)w_h_rate isOpenVirtual:(BOOL)isOpenVirtual isUsageMode:(BOOL)isUsageMode;
  78. /**
  79. * @brief 默认布局渲染视图竖屏模式视图宽高比默认为9/16
  80. *
  81. * @param isOpenVirtual 是否有打开虚拟按键视图
  82. *
  83. * @param isUsageMode 是否为专业模式
  84. *
  85. */
  86. - (void)initPoMas_makeWithImageRate:(BOOL)isOpenVirtual isUsageMode:(BOOL)isUsageMode;
  87. @end
  88. NS_ASSUME_NONNULL_END