EMVideoMessageBody.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /**
  2. * \~chinese
  3. * @header EMVideoMessageBody.h
  4. * @abstract 视频消息体。
  5. * @author Hyphenate
  6. * @version 3.00
  7. *
  8. * \~english
  9. * @header EMVideoMessageBody.h
  10. * @abstract The video message body.
  11. * @author Hyphenate
  12. * @version 3.00
  13. */
  14. #import <Foundation/Foundation.h>
  15. #import "EMFileMessageBody.h"
  16. /**
  17. * \~chinese
  18. * 视频消息体。
  19. *
  20. * \~english
  21. * The video message body.
  22. */
  23. @interface EMVideoMessageBody : EMFileMessageBody
  24. /**
  25. * \~chinese
  26. * 视频时长, 单位为秒。
  27. *
  28. * \~english
  29. * The video duration, in seconds.
  30. */
  31. @property (nonatomic) int duration;
  32. /**
  33. * \~chinese
  34. * 缩略图的本地路径。
  35. *
  36. * \~english
  37. * The local path of thumbnail.
  38. */
  39. @property (nonatomic, copy) NSString *_Nullable thumbnailLocalPath;
  40. /**
  41. * \~chinese
  42. * 缩略图在服务器的路径。
  43. *
  44. * \~english
  45. * The URL of the thumbnail on the server.
  46. */
  47. @property (nonatomic, copy) NSString *_Nullable thumbnailRemotePath;
  48. /**
  49. * \~chinese
  50. * 缩略图的密钥, 下载缩略图时需要密匙做校验。
  51. *
  52. * \~english
  53. * The secret key of the thumbnail, which is required for verification when downloading the thumbnail.
  54. */
  55. @property (nonatomic, copy) NSString *_Nullable thumbnailSecretKey;
  56. /**
  57. * \~chinese
  58. * 视频缩略图的尺寸。
  59. *
  60. * \~english
  61. * The size of the video thumbnail.
  62. */
  63. @property (nonatomic) CGSize thumbnailSize;
  64. /**
  65. * \~chinese
  66. * 缩略图下载状态。
  67. *
  68. * \~english
  69. * The download status of the thumbnail.
  70. */
  71. @property (nonatomic)EMDownloadStatus thumbnailDownloadStatus;
  72. @end