WFCUBroadcastDefine.h 710 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // WFCUBroadcastDefine.h
  3. // WFChatUIKit
  4. //
  5. // Created by Rain on 2022/10/14.
  6. // Copyright © 2022 Wildfirechat. All rights reserved.
  7. //
  8. #ifndef WFCUBroadcastDefine_h
  9. #define WFCUBroadcastDefine_h
  10. //broadcast发往container app的数据头
  11. typedef struct {
  12. int dataType; //0 broadcast的状态;1 数据
  13. int dataLen;
  14. } PacketHeader;
  15. //broadcast发往container app的Sample数据
  16. typedef struct {
  17. int dataLen;
  18. int width;
  19. int height;
  20. int type; //0, video; 1, audio
  21. } SampleInfo;
  22. //container app发往broadcast的命令
  23. typedef struct {
  24. int type; //0 旋转状态;1 是否发送音频;2 分辨率;3 结束
  25. int value;
  26. } Command;
  27. #endif /* WFCUBroadcastDefine_h */