VideoFileDownloadConfig.h 923 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // VideoFileDownloadConfig.h
  3. // FunSDKDemo
  4. //
  5. // Created by XM on 2018/11/15.
  6. // Copyright © 2018年 XM. All rights reserved.
  7. //
  8. /***
  9. *
  10. *录像下载功能,目前是在主线程操作,退出界面时会被释放,就会停止下载。
  11. *目前不支持断点续传,如果要实现后台下载,首先需要实现保持本类在界面退出时不被释放
  12. *
  13. ******/
  14. #import "Header.h"
  15. @protocol FileDownloadDelegate <NSObject>
  16. @optional
  17. //下载录像开始回调
  18. - (void)fileDownloadStartResult:(NSInteger)result;
  19. //下载进度回调
  20. - (void)fileDownloadProgressResult:(float)progress;
  21. //下载录像结果回调
  22. - (void)fileDownloadEndResult;
  23. @end
  24. #import "FunMsgListener.h"
  25. #import "RecordInfo.h"
  26. @interface VideoFileDownloadConfig : FunMsgListener
  27. @property (nonatomic, assign) id <FileDownloadDelegate> delegate;
  28. #pragma mark - 开始下载录像
  29. - (void)downloadFile:(RecordInfo*)record;
  30. @end