CloudVideoConfig.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // CloudVideoConfig.h
  3. // FunSDKDemo
  4. //
  5. // Created by XM on 2019/1/7.
  6. // Copyright © 2019年 XM. All rights reserved.
  7. //
  8. /***
  9. *
  10. *云存储录像查询功能,查询一个月内哪些天有录像等等
  11. *录像和图片搜索方式类似,只有其中个别参数不同
  12. *录像和图片下载不支持断点续传,如果想要后台下载,下载工具类需要设置为全局对象,根据需要进行app后台运行设置。
  13. *下载后的录像可以在app相册中播放
  14. ******/
  15. #import "Header.h"
  16. @protocol CloudVideoConfigDelegate <NSObject>
  17. @optional
  18. //获取云视频日期代理回调
  19. - (void)getCloudMonthResult:(NSInteger)result;
  20. //获取云视频信息代理回调
  21. - (void)getCloudVideoResult:(NSInteger)result;
  22. // 下载云存储缩略图
  23. - (void)downloadSmallCloudThumbResult:(int)result path:(NSString *)path;
  24. // 下载云存储视频开始
  25. - (void)downloadCloudVideoStartResult:(int)result;
  26. // 下载视频进度
  27. - (void)downloadCloudVideoProgress:(float)progress;
  28. // 下载视频完成
  29. - (void)downloadCloudVideoComplete:(int)result path:(NSString*)path;
  30. @end
  31. @protocol CloudVideoTimeDelegate <NSObject>
  32. @optional
  33. //获取云视频信息代理回调
  34. - (void)getCloudVideoTimeResult:(NSInteger)result;
  35. //获取云视频时间代理回调
  36. - (void)addTimeDelegate:(NSInteger)add;
  37. @end
  38. #import "ConfigControllerBase.h"
  39. #import "CLouldVideoResource.h"
  40. @interface CloudVideoConfig : ConfigControllerBase
  41. @property (nonatomic, assign) id <CloudVideoConfigDelegate> delegate;
  42. @property (nonatomic, assign) id <CloudVideoTimeDelegate> timeDelegate;
  43. #pragma mark - 获取传入这一天当月有云视频的日期
  44. - (void)getCloudVideoMonth:(NSDate*)date;
  45. #pragma mark 获取传入日期云存储中的视频
  46. - (void)searchCloudVideo:(NSDate*)date;
  47. #pragma mark - 下载云视频缩略图
  48. - (void)downloadSmallCloudThumb:(CLouldVideoResource*)resource;
  49. #pragma mark 下载云视频文件
  50. - (void)downloadCloudVideoFile:(CLouldVideoResource*)resource;
  51. #pragma mark - 读取获取到的一个月份中,有云视频的日期数组
  52. - (NSMutableArray*)getMonthVideoArray;
  53. #pragma mark 读取获取到的传入一天中的云视频数组
  54. - (NSMutableArray*)getCloudVideoFileArray;
  55. #pragma mark 读取这一天有录像的时间段
  56. - (NSMutableArray*)getVideoTimeArray;
  57. @end