TUIVideoMessageCell.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Created by Tencent on 2023/06/09.
  2. // Copyright © 2023 Tencent. All rights reserved.
  3. /**
  4. * This document declares the TUIVideoMessageCell unit, which is responsible for the display of video messages.
  5. * The video message unit, a unit displayed when sending and receiving video messages, can display the video cover, video duration, etc. to the user,
  6. * and at the same time, can respond to user operations and provide an operation entry for video playback.
  7. * When you tap the video message, you will enter the video playback interface.
  8. */
  9. #import <TIMCommon/TUIBubbleMessageCell.h>
  10. #import <TIMCommon/TUIMessageCell.h>
  11. #import "TUIVideoMessageCellData.h"
  12. /**
  13. *
  14. * 【Module name】TUIVideoMessageCell
  15. * 【Function description】 Video message unit
  16. * - The video message unit provides the function of extracting and displaying thumbnails of video messages, and can display the video length and video
  17. * download/upload progress.
  18. * - At the same time, the network acquisition and local acquisition of video messages (if it exists in the local cache) are integrated in the message unit.
  19. */
  20. @interface TUIVideoMessageCell : TUIBubbleMessageCell
  21. /**
  22. *
  23. * Video thumbnail
  24. * Display the thumbnail of the video when it is not playing, so that users can get general information about the video without playing the video.
  25. */
  26. @property(nonatomic, strong) UIImageView *thumb;
  27. /**
  28. * Label for displaying video duration
  29. */
  30. @property(nonatomic, strong) UILabel *duration;
  31. /**
  32. * Play icon, that is, the "arrow icon" displayed in the UI.
  33. */
  34. @property(nonatomic, strong) UIImageView *play;
  35. /**
  36. * Label for displaying video doadloading/uploading progress
  37. *
  38. */
  39. @property(nonatomic, strong) UILabel *progress;
  40. @property TUIVideoMessageCellData *videoData;
  41. - (void)fillWithData:(TUIVideoMessageCellData *)data;
  42. @end